@betorigami/games 0.7.4 → 0.7.6
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/index.d.ts +740 -6
- package/dist/index.mjs +3579 -6434
- package/package.json +11 -7
- package/dist/components/dice/DiceContent/DiceContent.d.ts +0 -14
- package/dist/components/dice/DiceContent/DiceContent.styles.d.ts +0 -1
- package/dist/components/dice/DiceContentBottom/DiceContentBottom.d.ts +0 -15
- package/dist/components/dice/DiceContentBottom/DiceContentBottom.styles.d.ts +0 -1
- package/dist/components/dice/DiceControls/DiceAuto.d.ts +0 -9
- package/dist/components/dice/DiceControls/DiceControls.styles.d.ts +0 -1
- package/dist/components/dice/DiceControls/DiceManual.d.ts +0 -10
- package/dist/components/dice/DiceGame.d.ts +0 -45
- package/dist/components/dice/DiceSlider/DiceSlider.d.ts +0 -16
- package/dist/components/dice/DiceSlider/DiceSlider.styles.d.ts +0 -1
- package/dist/components/dice/dice.api.d.ts +0 -71
- package/dist/components/dice/dice.mock.api.d.ts +0 -13
- package/dist/components/keno/KenoContent/KenoContent.d.ts +0 -17
- package/dist/components/keno/KenoContent/KenoContent.styles.d.ts +0 -1
- package/dist/components/keno/KenoContent/KenoContentBottom.d.ts +0 -15
- package/dist/components/keno/KenoContent/KenoContentBottom.styles.d.ts +0 -1
- package/dist/components/keno/KenoControls/KenoAuto.d.ts +0 -11
- package/dist/components/keno/KenoControls/KenoControls.styles.d.ts +0 -1
- package/dist/components/keno/KenoControls/KenoManual.d.ts +0 -11
- package/dist/components/keno/KenoGame.d.ts +0 -31
- package/dist/components/keno/KenoGrid/KenoGrid.d.ts +0 -15
- package/dist/components/keno/KenoGrid/KenoGrid.styles.d.ts +0 -1
- package/dist/components/keno/KenoTile/KenoTile.d.ts +0 -16
- package/dist/components/keno/KenoTile/KenoTile.styles.d.ts +0 -1
- package/dist/components/keno/keno.api.d.ts +0 -67
- package/dist/components/keno/keno.mock.api.d.ts +0 -15
- package/dist/components/limbo/LimboContent/LimboContent.d.ts +0 -13
- package/dist/components/limbo/LimboContent/LimboContent.styles.d.ts +0 -1
- package/dist/components/limbo/LimboContentBottom/LimboContentBottom.d.ts +0 -14
- package/dist/components/limbo/LimboContentBottom/LimboContentBottom.styles.d.ts +0 -1
- package/dist/components/limbo/LimboControls/LimboAuto.d.ts +0 -9
- package/dist/components/limbo/LimboControls/LimboControls.styles.d.ts +0 -1
- package/dist/components/limbo/LimboControls/LimboManual.d.ts +0 -11
- package/dist/components/limbo/LimboGame.d.ts +0 -27
- package/dist/components/limbo/Multiplier/LimboMultiplier.d.ts +0 -17
- package/dist/components/limbo/Multiplier/LimboMultiplier.styles.d.ts +0 -1
- package/dist/components/limbo/limbo.api.d.ts +0 -62
- package/dist/components/limbo/limbo.mock.api.d.ts +0 -13
- package/dist/components/mines/Controls/MinesAuto.d.ts +0 -14
- package/dist/components/mines/Controls/MinesControls.styles.d.ts +0 -1
- package/dist/components/mines/Controls/MinesManual.d.ts +0 -10
- package/dist/components/mines/MinesContent/MinesContent.d.ts +0 -16
- package/dist/components/mines/MinesContent/MinesContent.styles.d.ts +0 -1
- package/dist/components/mines/MinesGame.d.ts +0 -36
- package/dist/components/mines/MinesGrid/MinesGrid.d.ts +0 -31
- package/dist/components/mines/MinesGrid/MinesGrid.styles.d.ts +0 -1
- package/dist/components/mines/MinesTile/MinesTile.d.ts +0 -23
- package/dist/components/mines/MinesTile/MinesTile.styles.d.ts +0 -1
- package/dist/components/mines/mines.api.d.ts +0 -122
- package/dist/components/mines/mines.constants.d.ts +0 -23
- package/dist/components/mines/mines.mock.api.d.ts +0 -50
- package/dist/components/shared/BetResultModal/BetResultModal.d.ts +0 -48
- package/dist/components/shared/BetResultModal/BetResultModal.styles.d.ts +0 -1
- package/dist/components/shared/Button/Button.d.ts +0 -25
- package/dist/components/shared/Button/Button.styles.d.ts +0 -1
- package/dist/components/shared/Button/ButtonGroup.d.ts +0 -6
- package/dist/components/shared/Button/ButtonGroup.styles.d.ts +0 -1
- package/dist/components/shared/Drawer/Drawer.d.ts +0 -122
- package/dist/components/shared/Drawer/Drawer.styles.d.ts +0 -2
- package/dist/components/shared/FairnessDetails/FairnessDetails.d.ts +0 -24
- package/dist/components/shared/FairnessDetails/FairnessDetails.styles.d.ts +0 -1
- package/dist/components/shared/Footer/Footer.d.ts +0 -48
- package/dist/components/shared/Footer/Footer.styles.d.ts +0 -1
- package/dist/components/shared/GameComponent.d.ts +0 -35
- package/dist/components/shared/GameLayout/GameLayout.d.ts +0 -36
- package/dist/components/shared/GameLayout/GameLayout.styles.d.ts +0 -1
- package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.d.ts +0 -39
- package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.styles.d.ts +0 -1
- package/dist/components/shared/GameProviderWrapper.d.ts +0 -26
- package/dist/components/shared/GameSidebar/GameSidebar.d.ts +0 -14
- package/dist/components/shared/GameSidebar/GameSidebar.styles.d.ts +0 -1
- package/dist/components/shared/GameWinPopup/GameWinPopup.d.ts +0 -14
- package/dist/components/shared/GameWinPopup/GameWinPopup.styles.d.ts +0 -1
- package/dist/components/shared/GenericAutobet/BetCountInput.d.ts +0 -11
- package/dist/components/shared/GenericAutobet/GenericAutobet.d.ts +0 -41
- package/dist/components/shared/GenericAutobet/GenericAutobet.styles.d.ts +0 -1
- package/dist/components/shared/GenericAutobet/context/autobet.context.d.ts +0 -11
- package/dist/components/shared/HistoryPills/HistoryPills.d.ts +0 -20
- package/dist/components/shared/HistoryPills/HistoryPills.styles.d.ts +0 -1
- package/dist/components/shared/Inputs/BetAmountInput/BetAmountInput.d.ts +0 -20
- package/dist/components/shared/Inputs/CurrencyInput/RawCurrencyInput.d.ts +0 -46
- package/dist/components/shared/Inputs/Input/Input.d.ts +0 -73
- package/dist/components/shared/Inputs/Input/Input.styles.d.ts +0 -1
- package/dist/components/shared/LottieIcon/LottieIcon.d.ts +0 -22
- package/dist/components/shared/Modal/Modal.d.ts +0 -91
- package/dist/components/shared/Modal/Modal.styles.d.ts +0 -2
- package/dist/components/shared/Modal/Portal.d.ts +0 -13
- package/dist/components/shared/Select/Select.d.ts +0 -48
- package/dist/components/shared/Select/Select.styles.d.ts +0 -1
- package/dist/components/shared/Statistics/Statistics.d.ts +0 -43
- package/dist/components/shared/Statistics/Statistics.styles.d.ts +0 -1
- package/dist/components/shared/Toggle/Toggle.d.ts +0 -13
- package/dist/components/shared/Toggle/Toggle.styles.d.ts +0 -1
- package/dist/components/shared/Tooltip/Tooltip.d.ts +0 -55
- package/dist/components/shared/Tooltip/Tooltip.styles.d.ts +0 -1
- package/dist/components/shared/context/game.context.d.ts +0 -19
- package/dist/lottie-CF6R56sF.js +0 -5443
- package/dist/shared/component.styles.d.ts +0 -2
- package/dist/shared/constants.d.ts +0 -8
- package/dist/shared/event-map.d.ts +0 -132
- package/dist/shared/get-game-outcome.d.ts +0 -1
- package/dist/shared/icons/currencies/btcIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/ethIcon.d.ts +0 -1
- package/dist/shared/icons/currencies/usdcIcon.d.ts +0 -1
- package/dist/shared/icons/diceCubeIcon.d.ts +0 -1
- package/dist/shared/icons/minesBombIcon.d.ts +0 -1
- package/dist/shared/icons/minesGemIcon.d.ts +0 -1
- package/dist/shared/origami-action.type.d.ts +0 -7
- package/dist/shared/origami-element.d.ts +0 -21
- package/dist/shared/sleep.d.ts +0 -1
- package/dist/shared/watch.d.ts +0 -26
- package/dist/utils/active-elements.d.ts +0 -15
- package/dist/utils/animate.d.ts +0 -22
- package/dist/utils/animation-registry.d.ts +0 -24
- package/dist/utils/blur-active-element.d.ts +0 -7
- package/dist/utils/event.d.ts +0 -2
- package/dist/utils/focus-trap.d.ts +0 -24
- package/dist/utils/scroll.d.ts +0 -22
- package/dist/utils/slot.controller.d.ts +0 -23
- package/dist/utils/tabbable.d.ts +0 -9
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
import { gameContextType } from '../context/game.context';
|
|
3
|
-
/**
|
|
4
|
-
* Footer component with navigation and branding elements.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* // Default footer with all features enabled
|
|
8
|
-
* <origami-footer @footer-settings-click=${() => console.log('settings')}></origami-footer>
|
|
9
|
-
*
|
|
10
|
-
* // Customized footer with specific options
|
|
11
|
-
* <origami-footer
|
|
12
|
-
* ?showLogo=${true}
|
|
13
|
-
* .logoUrl=${'/custom-logo.svg'}
|
|
14
|
-
* ?showTheatre=${false}
|
|
15
|
-
* @footer-favorites-click=${() => console.log('favorites clicked')}
|
|
16
|
-
* ></origami-footer>
|
|
17
|
-
*
|
|
18
|
-
* @property {string} logoAlt - Alt text for the logo
|
|
19
|
-
* @property {boolean} showTheatre - Whether to show the theatre button
|
|
20
|
-
* @property {boolean} showStats - Whether to show the stats button
|
|
21
|
-
* @property {boolean} showFavorites - Whether to show the favorites button
|
|
22
|
-
* @property {boolean} showFairness - Whether to show the fairness button
|
|
23
|
-
*
|
|
24
|
-
* @fires {CustomEvent} footer-settings-click - Fired when the settings button is clicked
|
|
25
|
-
* @fires {CustomEvent} footer-theatre-click - Fired when the theatre button is clicked
|
|
26
|
-
* @fires {CustomEvent} footer-stats-click - Fired when the stats button is clicked
|
|
27
|
-
* @fires {CustomEvent} footer-favorites-click - Fired when the favorites button is clicked
|
|
28
|
-
* @fires {CustomEvent} footer-provably-fair-click - Fired when the fairness button is clicked
|
|
29
|
-
*
|
|
30
|
-
* @cssvar --origami-footer-background-color - Background color of the footer
|
|
31
|
-
* @cssvar --origami-footer-border-radius - Border radius of the footer
|
|
32
|
-
*/
|
|
33
|
-
export declare class Footer extends OrigamiElement {
|
|
34
|
-
static styles: import('lit').CSSResult[];
|
|
35
|
-
gameData?: gameContextType;
|
|
36
|
-
/** Whether to show the logo. */
|
|
37
|
-
showLogo: boolean;
|
|
38
|
-
/** URL to the logo image. */
|
|
39
|
-
logoUrl: string;
|
|
40
|
-
/** Alt text for the logo. */
|
|
41
|
-
logoAlt: string;
|
|
42
|
-
private handleSettingsClick;
|
|
43
|
-
private handleTheatreClick;
|
|
44
|
-
private handleStatsClick;
|
|
45
|
-
private handleFavoritesClick;
|
|
46
|
-
private handleProvablyFairClick;
|
|
47
|
-
render(): import('lit').TemplateResult<1>;
|
|
48
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const footerStyles: import('lit').CSSResult;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { default as BigNumber } from 'bignumber.js';
|
|
2
|
-
import { AutobetToggleEvent } from '../../shared/event-map';
|
|
3
|
-
import { default as OrigamiElement } from '../../shared/origami-element';
|
|
4
|
-
import { BetMode } from './GameSidebar/GameSidebar';
|
|
5
|
-
import { AfterBetEffect } from './GenericAutobet/GenericAutobet';
|
|
6
|
-
export interface AutobetSettings {
|
|
7
|
-
onWinStrategy: AfterBetEffect;
|
|
8
|
-
onLossStrategy: AfterBetEffect;
|
|
9
|
-
onWinPercentage: string | number;
|
|
10
|
-
onLossPercentage: string | number;
|
|
11
|
-
stopOnLoss: string;
|
|
12
|
-
stopOnProfit: string;
|
|
13
|
-
numberOfBets?: number;
|
|
14
|
-
autobetBets?: number;
|
|
15
|
-
}
|
|
16
|
-
export interface GameBetResult {
|
|
17
|
-
pnl: BigNumber;
|
|
18
|
-
gameOutcome: 'Win' | 'Loss' | 'Draw';
|
|
19
|
-
hasError: boolean;
|
|
20
|
-
errorMessage?: string;
|
|
21
|
-
}
|
|
22
|
-
export declare abstract class GameComponent extends OrigamiElement {
|
|
23
|
-
protected manualOrAuto: BetMode;
|
|
24
|
-
protected hasPendingBet: boolean;
|
|
25
|
-
protected autobetInProgress: boolean;
|
|
26
|
-
protected autobetStopping: boolean;
|
|
27
|
-
protected betDelay: number;
|
|
28
|
-
static styles: import('lit').CSSResult[];
|
|
29
|
-
private gameConsumer;
|
|
30
|
-
get gameData(): import('./context/game.context').gameContextType | undefined;
|
|
31
|
-
toggleAutobet(event: AutobetToggleEvent): Promise<void>;
|
|
32
|
-
protected abstract executeAutobet(_autobetSettings: AutobetSettings, _currentBetAmount: string): Promise<GameBetResult>;
|
|
33
|
-
protected adjustBetAmount(autobetSettings: AutobetSettings, gameOutcome: 'Win' | 'Loss' | 'Draw', originalBetAmount: string, currentBetAmount: string): string;
|
|
34
|
-
protected isPnLWithinLimits(autobetSettings: AutobetSettings, totalPnL: BigNumber): boolean;
|
|
35
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element.js';
|
|
2
|
-
import { GameType } from '../BetResultModal/BetResultModal.js';
|
|
3
|
-
import { gameContextType } from '../context/game.context';
|
|
4
|
-
export declare class GameLayout extends OrigamiElement {
|
|
5
|
-
static styles: import('lit').CSSResult[];
|
|
6
|
-
gameData?: gameContextType;
|
|
7
|
-
/** Additional CSS class name for the container */
|
|
8
|
-
className: string;
|
|
9
|
-
/** ID for the main game container */
|
|
10
|
-
containerId: string;
|
|
11
|
-
/** Whether to show the footer */
|
|
12
|
-
showFooter: boolean;
|
|
13
|
-
/** Whether to show the logo in the footer */
|
|
14
|
-
showLogo: boolean;
|
|
15
|
-
/** URL for the logo image */
|
|
16
|
-
logoUrl: string;
|
|
17
|
-
/** Alt text for the logo image */
|
|
18
|
-
logoAlt: string;
|
|
19
|
-
/** Whether to show the settings button */
|
|
20
|
-
showSettings: boolean;
|
|
21
|
-
/** Whether to show the theatre button */
|
|
22
|
-
showTheatre: boolean;
|
|
23
|
-
/** Whether to show the stats button */
|
|
24
|
-
showStats: boolean;
|
|
25
|
-
/** Whether to show the favorites button */
|
|
26
|
-
showFavorites: boolean;
|
|
27
|
-
/** Whether to show the Provably Fair button/link in the footer */
|
|
28
|
-
showFairness: boolean;
|
|
29
|
-
showFairnessModal: boolean;
|
|
30
|
-
betResultModalGameType: GameType | null;
|
|
31
|
-
private _handleFairnessClick;
|
|
32
|
-
private _handleGameResultModalClose;
|
|
33
|
-
private _handleFairnessModalClose;
|
|
34
|
-
private _handleOpenBetResultModal;
|
|
35
|
-
render(): import('lit').TemplateResult<1>;
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const gameLayoutStyles: import('lit').CSSResult;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export interface MinesData {
|
|
3
|
-
selectedTiles: number[];
|
|
4
|
-
mineLocations: number[];
|
|
5
|
-
}
|
|
6
|
-
export interface LimboData {
|
|
7
|
-
isWin: boolean;
|
|
8
|
-
betId: string;
|
|
9
|
-
resultMultiplier: number;
|
|
10
|
-
betTargetMultiplier: number;
|
|
11
|
-
}
|
|
12
|
-
export interface DiceData {
|
|
13
|
-
value: number;
|
|
14
|
-
min: number;
|
|
15
|
-
max: number;
|
|
16
|
-
step: number;
|
|
17
|
-
showDice: boolean;
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
resultValue: number;
|
|
20
|
-
isWin: boolean;
|
|
21
|
-
isRollLower: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface KenoData {
|
|
24
|
-
selectedTiles: number[];
|
|
25
|
-
resultTiles: number[];
|
|
26
|
-
isPlaying: boolean;
|
|
27
|
-
gameOver: boolean;
|
|
28
|
-
popupShowing: boolean;
|
|
29
|
-
}
|
|
30
|
-
export type GameType = 'mines' | 'limbo' | 'dice' | 'keno';
|
|
31
|
-
export declare class GameOutcomeDisplay extends LitElement {
|
|
32
|
-
static styles: import('lit').CSSResult[];
|
|
33
|
-
gameType: GameType;
|
|
34
|
-
minesData?: MinesData;
|
|
35
|
-
limboData?: LimboData;
|
|
36
|
-
diceData?: DiceData;
|
|
37
|
-
kenoData?: KenoData;
|
|
38
|
-
render(): import('lit').TemplateResult<1>;
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const gameOutcomeDisplayStyles: import('lit').CSSResult;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ContextProvider } from '@lit/context';
|
|
2
|
-
import { default as BigNumber } from 'bignumber.js';
|
|
3
|
-
import { PropertyValues } from 'lit';
|
|
4
|
-
import { Currency } from '../../shared/constants';
|
|
5
|
-
import { default as OrigamiElement } from '../../shared/origami-element';
|
|
6
|
-
export declare class GameProviderWrapper extends OrigamiElement {
|
|
7
|
-
currency: Currency;
|
|
8
|
-
isTheatreMode: boolean;
|
|
9
|
-
showFavorites: boolean;
|
|
10
|
-
balance: number;
|
|
11
|
-
baseUrl: string;
|
|
12
|
-
authToken: string;
|
|
13
|
-
isCryptoMode: boolean;
|
|
14
|
-
gameStatsOpen: boolean;
|
|
15
|
-
private betAmount;
|
|
16
|
-
private autobetNumberOfBets;
|
|
17
|
-
protected _gameProvider: ContextProvider<{
|
|
18
|
-
__context__: import('./context/game.context').gameContextType;
|
|
19
|
-
}, this>;
|
|
20
|
-
connectedCallback(): void;
|
|
21
|
-
updated(changedProperties: PropertyValues): void;
|
|
22
|
-
private updateProviderValue;
|
|
23
|
-
updateAutobetNumberOfBets(numberOfBets: number): void;
|
|
24
|
-
updateBalance(newAmount: BigNumber): void;
|
|
25
|
-
render(): import('lit').TemplateResult<1>;
|
|
26
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
export type BetMode = 'Manual' | 'Autobet';
|
|
3
|
-
export declare class GameSidebar extends OrigamiElement {
|
|
4
|
-
static styles: import('lit').CSSResult[];
|
|
5
|
-
mode: BetMode;
|
|
6
|
-
betAmount: string;
|
|
7
|
-
currency: string;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
enableHaptics: boolean;
|
|
11
|
-
className: string;
|
|
12
|
-
private _handleToggleChange;
|
|
13
|
-
render(): import('lit').TemplateResult<1>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const gameSidebarStyles: import('lit').CSSResult;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
type GameType = 'Keno' | 'Mines';
|
|
3
|
-
export declare class GameWinPopup extends LitElement {
|
|
4
|
-
static styles: import('lit').CSSResult[];
|
|
5
|
-
payout: BigNumber | null;
|
|
6
|
-
multiplier: number | undefined;
|
|
7
|
-
currencySymbol: string;
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
gemCount: number | undefined;
|
|
11
|
-
gameType: GameType;
|
|
12
|
-
render(): TemplateResult<1>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const gameWinPopupStyles: import('lit').CSSResult;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
import { gameContextType } from '../context/game.context';
|
|
3
|
-
export declare class BetCountInput extends OrigamiElement {
|
|
4
|
-
gameData?: gameContextType;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
static styles: import('lit').CSSResult[];
|
|
7
|
-
private _handleAutobetGamesChange;
|
|
8
|
-
private _handleAutobetGamesBlur;
|
|
9
|
-
private preventNonWholeNumberInput;
|
|
10
|
-
render(): import('lit').TemplateResult<1>;
|
|
11
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
import { ContextProvider } from '@lit/context';
|
|
3
|
-
import { Currency } from '../../../shared/constants';
|
|
4
|
-
export type AfterBetEffect = 'Reset' | 'Increase';
|
|
5
|
-
export declare const defaultAutobetValues: {
|
|
6
|
-
onWinPercentage: string;
|
|
7
|
-
onLossPercentage: string;
|
|
8
|
-
stopOnProfit: string;
|
|
9
|
-
stopOnLoss: string;
|
|
10
|
-
onLossStrategy: AfterBetEffect;
|
|
11
|
-
onWinStrategy: AfterBetEffect;
|
|
12
|
-
};
|
|
13
|
-
export type AutobetValues = typeof defaultAutobetValues;
|
|
14
|
-
export declare class GenericAutobet extends OrigamiElement {
|
|
15
|
-
inputsDisabled: boolean;
|
|
16
|
-
autobetSettings: {
|
|
17
|
-
onWinPercentage: string;
|
|
18
|
-
onLossPercentage: string;
|
|
19
|
-
stopOnProfit: string;
|
|
20
|
-
stopOnLoss: string;
|
|
21
|
-
onLossStrategy: AfterBetEffect;
|
|
22
|
-
onWinStrategy: AfterBetEffect;
|
|
23
|
-
};
|
|
24
|
-
currency: Currency;
|
|
25
|
-
autobetStopping: boolean;
|
|
26
|
-
readonly autobetInProgress = false;
|
|
27
|
-
profitOnWin: string;
|
|
28
|
-
betDisabled: boolean;
|
|
29
|
-
customInputsSlot?: HTMLSlotElement;
|
|
30
|
-
static styles: import('lit').CSSResult[];
|
|
31
|
-
protected _autobetProvider: ContextProvider<{
|
|
32
|
-
__context__: import('./context/autobet.context').AutobetContextType;
|
|
33
|
-
}, this>;
|
|
34
|
-
updateNumberOfBets(numberOfBets: string): void;
|
|
35
|
-
private _handleWinPercentageChange;
|
|
36
|
-
private _handleLossPercentageChange;
|
|
37
|
-
private _handleStopOnProfitChange;
|
|
38
|
-
private _handleStopOnLossChange;
|
|
39
|
-
private _hasCustomInputs;
|
|
40
|
-
render(): import('lit').TemplateResult<1>;
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const genericAutobetStyles: import('lit').CSSResult;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SelectOption } from '../../Select/Select';
|
|
2
|
-
export interface AutobetContextType {
|
|
3
|
-
numberOfBets: string;
|
|
4
|
-
updateNumberOfBets: (numberOfBets: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const autobetGamesOptions: SelectOption[];
|
|
7
|
-
export declare const defaultNumberOfBetsValue: string;
|
|
8
|
-
export declare const autobetContext: {
|
|
9
|
-
__context__: AutobetContextType;
|
|
10
|
-
};
|
|
11
|
-
export declare const defaultAutobetContext: AutobetContextType;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
import { GameType } from '../BetResultModal/BetResultModal';
|
|
3
|
-
export interface HistoryItem {
|
|
4
|
-
multiplier: number;
|
|
5
|
-
won: boolean;
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class HistoryPills extends OrigamiElement {
|
|
9
|
-
static styles: import('lit').CSSResult[];
|
|
10
|
-
history: HistoryItem[];
|
|
11
|
-
gameType: GameType;
|
|
12
|
-
private animatingInIds;
|
|
13
|
-
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
14
|
-
handleHistoryChange(oldHistory: HistoryItem[]): void;
|
|
15
|
-
private handleAnimationEnd;
|
|
16
|
-
private formatMultiplier;
|
|
17
|
-
private renderHistoryPill;
|
|
18
|
-
private handleHistoryPillClick;
|
|
19
|
-
render(): import('lit').TemplateResult<1>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const historyPillsStyles: import('lit').CSSResult;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as BigNumber } from 'bignumber.js';
|
|
2
|
-
import { default as OrigamiElement } from '../../../../shared/origami-element';
|
|
3
|
-
import { gameContextType } from '../../context/game.context';
|
|
4
|
-
export declare class BetAmountInput extends OrigamiElement {
|
|
5
|
-
static styles: import('lit').CSSResult[];
|
|
6
|
-
gameData?: gameContextType;
|
|
7
|
-
private isFocused;
|
|
8
|
-
private _gameContext;
|
|
9
|
-
firstUpdated(): void;
|
|
10
|
-
private value;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
label: string;
|
|
13
|
-
updateBalanceState(newAmount: BigNumber): void;
|
|
14
|
-
private handleCurrencyInputChange;
|
|
15
|
-
private updateAmount;
|
|
16
|
-
private handleHalfBet;
|
|
17
|
-
private handleDoubleBet;
|
|
18
|
-
handleDisplayInFiatChange(): void;
|
|
19
|
-
render(): import('lit').TemplateResult<1>;
|
|
20
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../../shared/origami-element';
|
|
2
|
-
import { Input } from '../Input/Input';
|
|
3
|
-
export type Currency = 'BTC' | 'ETH' | 'USDC';
|
|
4
|
-
export type FiatCurrency = 'USD' | 'EUR' | 'GBP';
|
|
5
|
-
export declare class RawCurrencyInput extends OrigamiElement {
|
|
6
|
-
label: string;
|
|
7
|
-
currency: Currency;
|
|
8
|
-
errorMessage: string;
|
|
9
|
-
fiatCurrency: FiatCurrency;
|
|
10
|
-
value: string;
|
|
11
|
-
rightLabel: string;
|
|
12
|
-
suffix: string;
|
|
13
|
-
placeholder: string;
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
readonly: boolean;
|
|
16
|
-
disableInput: boolean;
|
|
17
|
-
cursorNotAllowed: boolean;
|
|
18
|
-
bgColor: string;
|
|
19
|
-
testId: string;
|
|
20
|
-
tooltip: string;
|
|
21
|
-
maxBetEnabled: boolean;
|
|
22
|
-
dimmed: boolean;
|
|
23
|
-
maxPayoutUSD: number;
|
|
24
|
-
variant: 'primary' | 'secondary';
|
|
25
|
-
required: boolean;
|
|
26
|
-
displayInFiat: boolean;
|
|
27
|
-
input: Input;
|
|
28
|
-
get leftAddon(): boolean;
|
|
29
|
-
get rightAddon(): boolean;
|
|
30
|
-
/** Format the value for display */
|
|
31
|
-
private formatValue;
|
|
32
|
-
/**
|
|
33
|
-
* Filter non-numeric keypress events
|
|
34
|
-
* This provides better UX by preventing obviously invalid keys
|
|
35
|
-
*/
|
|
36
|
-
private preventNonNumericInput;
|
|
37
|
-
/**
|
|
38
|
-
* Handle all input changes including paste events
|
|
39
|
-
* This is the single point of validation for all input methods
|
|
40
|
-
*/
|
|
41
|
-
private handleChange;
|
|
42
|
-
/** Handle input blur */
|
|
43
|
-
private handleBlur;
|
|
44
|
-
private handleFocus;
|
|
45
|
-
render(): import('lit').TemplateResult<1>;
|
|
46
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../../shared/origami-element';
|
|
2
|
-
export interface InputAddonButton {
|
|
3
|
-
label: string;
|
|
4
|
-
'aria-label'?: string;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export type InputType = 'text' | 'number' | 'password' | 'email' | 'search' | 'tel' | 'url' | 'date' | 'time' | 'datetime-local';
|
|
10
|
-
export declare const ValidationPatterns: {
|
|
11
|
-
email: RegExp;
|
|
12
|
-
url: RegExp;
|
|
13
|
-
phone: RegExp;
|
|
14
|
-
number: RegExp;
|
|
15
|
-
integer: RegExp;
|
|
16
|
-
alphabetic: RegExp;
|
|
17
|
-
alphanumeric: RegExp;
|
|
18
|
-
};
|
|
19
|
-
export declare class Input extends OrigamiElement {
|
|
20
|
-
static styles: import('lit').CSSResult[];
|
|
21
|
-
value: string;
|
|
22
|
-
label: string;
|
|
23
|
-
placeholder: string;
|
|
24
|
-
type: InputType;
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
rightText: string | null;
|
|
27
|
-
min: number | null;
|
|
28
|
-
max: number | null;
|
|
29
|
-
step: number | null;
|
|
30
|
-
addonButtonsPosition: 'left' | 'right';
|
|
31
|
-
name: string | null;
|
|
32
|
-
autocomplete: string | null;
|
|
33
|
-
required: boolean;
|
|
34
|
-
readonly: boolean;
|
|
35
|
-
pattern: string | null;
|
|
36
|
-
validateOnInput: boolean;
|
|
37
|
-
tooltipFullWidth: boolean;
|
|
38
|
-
validationPattern: string | null;
|
|
39
|
-
validationMessage: string | null;
|
|
40
|
-
inputMode: 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | 'none' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | 'none';
|
|
41
|
-
hideRightLabel: boolean;
|
|
42
|
-
clickable: boolean;
|
|
43
|
-
forceActiveBorder: boolean;
|
|
44
|
-
handleBeforeInput: ((e: InputEvent & {
|
|
45
|
-
dataTransfer?: DataTransfer | null;
|
|
46
|
-
}) => void) | null;
|
|
47
|
-
tooltipOffset: number;
|
|
48
|
-
errorMessage: string | null;
|
|
49
|
-
private _isIconRotating;
|
|
50
|
-
errorTooltipMessage: string;
|
|
51
|
-
private _iconRotationState;
|
|
52
|
-
private inputRef;
|
|
53
|
-
private inputId;
|
|
54
|
-
private errorId;
|
|
55
|
-
private handleInput;
|
|
56
|
-
/**
|
|
57
|
-
* Handler for paste events to fix browser issues with number inputs
|
|
58
|
-
* This ensures that what you paste is what you get, even with invalid number characters like 'e'
|
|
59
|
-
*/
|
|
60
|
-
private handlePaste;
|
|
61
|
-
/**
|
|
62
|
-
* Extracts numeric value from a string
|
|
63
|
-
*/
|
|
64
|
-
private handleClick;
|
|
65
|
-
private handleAnimationEnd;
|
|
66
|
-
private handleFocus;
|
|
67
|
-
private handleBlur;
|
|
68
|
-
render(): import('lit').TemplateResult<1>;
|
|
69
|
-
get rightIcon(): boolean;
|
|
70
|
-
get leftIcon(): boolean;
|
|
71
|
-
get leftAddon(): boolean;
|
|
72
|
-
get rightAddon(): boolean;
|
|
73
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const inputStyles: import('lit').CSSResult;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
export declare class LottieIcon extends OrigamiElement {
|
|
3
|
-
static styles: import('lit').CSSResult;
|
|
4
|
-
src: string;
|
|
5
|
-
size: string;
|
|
6
|
-
triggerSelector: string;
|
|
7
|
-
active: boolean;
|
|
8
|
-
private animation;
|
|
9
|
-
private containerRef;
|
|
10
|
-
private abortController;
|
|
11
|
-
private lottieModule;
|
|
12
|
-
connectedCallback(): Promise<void>;
|
|
13
|
-
disconnectedCallback(): void;
|
|
14
|
-
private initialize;
|
|
15
|
-
private loadLottieModule;
|
|
16
|
-
private loadAnimationData;
|
|
17
|
-
private setupAnimation;
|
|
18
|
-
private setupHoverTrigger;
|
|
19
|
-
private playAnimation;
|
|
20
|
-
private cleanup;
|
|
21
|
-
render(): import('lit').TemplateResult<1>;
|
|
22
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element.js';
|
|
2
|
-
import { default as FocusTrap } from '../../../utils/focus-trap.js';
|
|
3
|
-
/**
|
|
4
|
-
* @summary Dialogs, sometimes called "modals", appear above the page and require the user's immediate attention.
|
|
5
|
-
* @documentation https://shoelace.style/components/dialog
|
|
6
|
-
* @status stable
|
|
7
|
-
* @since 2.0
|
|
8
|
-
*
|
|
9
|
-
* @dependency sl-icon-button
|
|
10
|
-
*
|
|
11
|
-
* @slot - The dialog's main content.
|
|
12
|
-
* @slot label - The dialog's label. Alternatively, you can use the `label` attribute.
|
|
13
|
-
* @slot header-actions - Optional actions to add to the header. Works best with `<sl-icon-button>`.
|
|
14
|
-
* @slot footer - The dialog's footer, usually one or more buttons representing various options.
|
|
15
|
-
*
|
|
16
|
-
* @event modal-show - Emitted when the dialog opens.
|
|
17
|
-
* @event modal-after-show - Emitted after the dialog opens and all animations are complete.
|
|
18
|
-
* @event modal-hide - Emitted when the dialog closes.
|
|
19
|
-
* @event modal-after-hide - Emitted after the dialog closes and all animations are complete.
|
|
20
|
-
* @event modal-initial-focus - Emitted when the dialog opens and is ready to receive focus. Calling
|
|
21
|
-
* `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.
|
|
22
|
-
* @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} sl-request-close - Emitted when the user attempts to
|
|
23
|
-
* close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling
|
|
24
|
-
* `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in
|
|
25
|
-
* destructive behavior such as data loss.
|
|
26
|
-
*
|
|
27
|
-
* @csspart base - The component's base wrapper.
|
|
28
|
-
* @csspart overlay - The overlay that covers the screen behind the dialog.
|
|
29
|
-
* @csspart panel - The dialog's panel (where the dialog and its content are rendered).
|
|
30
|
-
* @csspart header - The dialog's header. This element wraps the title and header actions.
|
|
31
|
-
* @csspart header-actions - Optional actions to add to the header. Works best with `<sl-icon-button>`.
|
|
32
|
-
* @csspart title - The dialog's title.
|
|
33
|
-
* @csspart close-button - The close button, an `<sl-icon-button>`.
|
|
34
|
-
* @csspart close-button__base - The close button's exported `base` part.
|
|
35
|
-
* @csspart body - The dialog's body.
|
|
36
|
-
* @csspart footer - The dialog's footer.
|
|
37
|
-
*
|
|
38
|
-
* @cssproperty --width - The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.
|
|
39
|
-
* @cssproperty --header-spacing - The amount of padding to use for the header.
|
|
40
|
-
* @cssproperty --body-spacing - The amount of padding to use for the body.
|
|
41
|
-
* @cssproperty --footer-spacing - The amount of padding to use for the footer.
|
|
42
|
-
*
|
|
43
|
-
* @animation dialog.show - The animation to use when showing the dialog.
|
|
44
|
-
* @animation dialog.hide - The animation to use when hiding the dialog.
|
|
45
|
-
* @animation dialog.denyClose - The animation to use when a request to close the dialog is denied.
|
|
46
|
-
* @animation dialog.overlay.show - The animation to use when showing the dialog's overlay.
|
|
47
|
-
* @animation dialog.overlay.hide - The animation to use when hiding the dialog's overlay.
|
|
48
|
-
*
|
|
49
|
-
* @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus
|
|
50
|
-
* trapping and allow third-party modals spawned from an active Shoelace modal, call `modal.activateExternal()` when
|
|
51
|
-
* the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Shoelace's focus trapping.
|
|
52
|
-
*/
|
|
53
|
-
export default class OrigamiModal extends OrigamiElement {
|
|
54
|
-
static styles: import('lit').CSSResult[];
|
|
55
|
-
private readonly hasSlotController;
|
|
56
|
-
private originalTrigger;
|
|
57
|
-
focusTrap: FocusTrap;
|
|
58
|
-
private closeWatcher;
|
|
59
|
-
fixedPosition: boolean;
|
|
60
|
-
dialog: HTMLElement;
|
|
61
|
-
panel: HTMLElement;
|
|
62
|
-
overlay: HTMLElement;
|
|
63
|
-
/**
|
|
64
|
-
* Indicates whether or not the dialog is open. You can toggle this attribute to show and hide the dialog, or you can
|
|
65
|
-
* use the `show()` and `hide()` methods and this attribute will reflect the dialog's open state.
|
|
66
|
-
*/
|
|
67
|
-
open: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* The dialog's label as displayed in the header. You should always include a relevant label even when using
|
|
70
|
-
* `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
|
|
71
|
-
*/
|
|
72
|
-
label: string;
|
|
73
|
-
lockScrolling: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Disables the header. This will also remove the default close button, so please ensure you provide an easy,
|
|
76
|
-
* accessible way for users to dismiss the dialog.
|
|
77
|
-
*/
|
|
78
|
-
noHeader: boolean;
|
|
79
|
-
firstUpdated(): void;
|
|
80
|
-
disconnectedCallback(): void;
|
|
81
|
-
private requestClose;
|
|
82
|
-
private addOpenListeners;
|
|
83
|
-
private removeOpenListeners;
|
|
84
|
-
private handleDocumentKeyDown;
|
|
85
|
-
handleOpenChange(): Promise<void>;
|
|
86
|
-
/** Shows the dialog. */
|
|
87
|
-
show(): Promise<void>;
|
|
88
|
-
/** Hides the dialog */
|
|
89
|
-
hide(): Promise<void>;
|
|
90
|
-
render(): import('lit').TemplateResult<1>;
|
|
91
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class Portal extends LitElement {
|
|
3
|
-
to?: string;
|
|
4
|
-
containerClass: string;
|
|
5
|
-
body: import('lit').TemplateResult<1>;
|
|
6
|
-
uniqueID: string;
|
|
7
|
-
private getOrCreateDestination;
|
|
8
|
-
private getOrCreateContainer;
|
|
9
|
-
private removeContainer;
|
|
10
|
-
updated(changedProperties: Map<string, unknown>): void;
|
|
11
|
-
disconnectedCallback(): void;
|
|
12
|
-
render(): void;
|
|
13
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
-
/**
|
|
3
|
-
* Option for the select input
|
|
4
|
-
*/
|
|
5
|
-
export interface SelectOption<T extends string = string> {
|
|
6
|
-
/**
|
|
7
|
-
* Value of the option
|
|
8
|
-
*/
|
|
9
|
-
value: T;
|
|
10
|
-
/**
|
|
11
|
-
* Display label for the option
|
|
12
|
-
*/
|
|
13
|
-
label: string;
|
|
14
|
-
/**
|
|
15
|
-
* Whether the option is disabled
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Optional group this option belongs to
|
|
20
|
-
*/
|
|
21
|
-
group?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare class Select extends OrigamiElement {
|
|
24
|
-
static styles: import('lit').CSSResult[];
|
|
25
|
-
dir: string;
|
|
26
|
-
label: string;
|
|
27
|
-
options: SelectOption[];
|
|
28
|
-
placeholder: string;
|
|
29
|
-
helperText: string | null;
|
|
30
|
-
disabled: boolean;
|
|
31
|
-
required: boolean;
|
|
32
|
-
defaultValue: string | null;
|
|
33
|
-
id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
error: string;
|
|
36
|
-
size: number | null;
|
|
37
|
-
autoFocus: boolean;
|
|
38
|
-
private _errorMessage;
|
|
39
|
-
value: string;
|
|
40
|
-
private _generatedId;
|
|
41
|
-
get _effectiveId(): string;
|
|
42
|
-
private getGroupedOptions;
|
|
43
|
-
private handleChange;
|
|
44
|
-
private validate;
|
|
45
|
-
private generateOptionElements;
|
|
46
|
-
private renderOption;
|
|
47
|
-
render(): import('lit').TemplateResult<1>;
|
|
48
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const selectStyles: import('lit').CSSResult;
|