@everymatrix/casino-challenges-overlay-slider 0.0.1
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-challenges-overlay-slider/app-globals-0f993ce5.js +1 -0
- package/dist/casino-challenges-overlay-slider/casino-challenges-overlay-card_2.entry.js +1 -0
- package/dist/casino-challenges-overlay-slider/casino-challenges-overlay-slider-2eb80eb5.js +1 -0
- package/dist/casino-challenges-overlay-slider/casino-challenges-overlay-slider.esm.js +1 -0
- package/dist/casino-challenges-overlay-slider/index-9e63661c.js +2 -0
- package/dist/casino-challenges-overlay-slider/index.esm.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-challenges-overlay-card_2.cjs.entry.js +164 -0
- package/dist/cjs/casino-challenges-overlay-slider-bf3e8c30.js +412 -0
- package/dist/cjs/casino-challenges-overlay-slider.cjs.js +25 -0
- package/dist/cjs/index-180bdedd.js +1248 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/assets/left_arrow.svg +3 -0
- package/dist/collection/assets/right_arrow.svg +3 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/casino-challenges-overlay-slider/casino-challenges-overlay-slider.css +98 -0
- package/dist/collection/components/casino-challenges-overlay-slider/casino-challenges-overlay-slider.js +450 -0
- package/dist/collection/components/casino-challenges-overlay-slider/components/casino-challenges-overlay-card.css +107 -0
- package/dist/collection/components/casino-challenges-overlay-slider/components/casino-challenges-overlay-card.js +260 -0
- package/dist/collection/components/casino-challenges-overlay-slider/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +48 -0
- package/dist/collection/utils/types.js +52 -0
- package/dist/collection/utils/utils.js +20 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-challenges-overlay-card_2.entry.js +160 -0
- package/dist/esm/casino-challenges-overlay-slider-2eb80eb5.js +409 -0
- package/dist/esm/casino-challenges-overlay-slider.js +20 -0
- package/dist/esm/index-9e63661c.js +1220 -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 +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/packages/stencil/casino-challenges-overlay-slider/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/packages/stencil/casino-challenges-overlay-slider/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/packages/stencil/casino-challenges-overlay-slider/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/packages/stencil/casino-challenges-overlay-slider/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-slider/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/casino-challenges-overlay-slider/casino-challenges-overlay-slider.d.ts +53 -0
- package/dist/types/components/casino-challenges-overlay-slider/components/casino-challenges-overlay-card.d.ts +22 -0
- package/dist/types/components/casino-challenges-overlay-slider/index.d.ts +1 -0
- package/dist/types/components.d.ts +118 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +3 -0
- package/dist/types/utils/types.d.ts +120 -0
- package/dist/types/utils/utils.d.ts +2 -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 +27 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-9e63661c.js';
|
|
2
|
+
export { s as setNonce } from './index-9e63661c.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-challenges-overlay-card_2",[[1,"casino-challenges-overlay-slider",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"challenges":[16],"initialProgressId":[1,"initial-progress-id"],"activeTabIndex":[1,"active-tab-index"],"currentIndex":[32],"slideWidth":[32],"slideHeight":[32],"isOneSlide":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"currentIndex":["onCurrentIndexChange"],"challenges":["onChallengesChange"],"initialProgressId":["onInitialProgressIdChange"]}],[0,"casino-challenges-overlay-card",{"challenge":[16],"index":[2],"arrLength":[2,"arr-length"],"currentIndex":[2,"current-index"],"language":[1],"isOptedOut":[4,"is-opted-out"],"slideWidth":[2,"slide-width"],"slideHeight":[2,"slide-height"],"timeLeft":[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,19 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'casino-challenges-overlay-slider',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: 'docs-readme'
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { cleanPackageJsonStencil } from "../../../tools/plugins";
|
|
2
|
+
import { sass } from "@stencil/sass";
|
|
3
|
+
export const config = {
|
|
4
|
+
namespace: 'casino-challenges-overlay-slider',
|
|
5
|
+
taskQueue: 'async',
|
|
6
|
+
sourceMap: false,
|
|
7
|
+
minifyJs: true,
|
|
8
|
+
hashFileNames: false,
|
|
9
|
+
extras: {
|
|
10
|
+
experimentalImportInjection: true
|
|
11
|
+
},
|
|
12
|
+
plugins: [cleanPackageJsonStencil(), sass()],
|
|
13
|
+
outputTargets: [
|
|
14
|
+
{
|
|
15
|
+
type: 'dist',
|
|
16
|
+
esmLoaderPath: '../loader'
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { getStoryFiles, detectUsedPackages, parseTsConfig, exec, filterParsedPathsByUsedPackages } from "../../../../libs/common/src/storybook/storybook-utils";
|
|
3
|
+
const config = {
|
|
4
|
+
stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
|
|
5
|
+
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
|
|
6
|
+
docs: {
|
|
7
|
+
defaultName: 'Documentation',
|
|
8
|
+
autodocs: 'tag'
|
|
9
|
+
},
|
|
10
|
+
framework: {
|
|
11
|
+
name: '@storybook/web-components-vite',
|
|
12
|
+
options: {}
|
|
13
|
+
},
|
|
14
|
+
// Async viteFinal to build dependent packages before finalizing configuration.
|
|
15
|
+
viteFinal: async (config) => {
|
|
16
|
+
const storyFiles = getStoryFiles(path.resolve(__dirname, '../'));
|
|
17
|
+
const usedPackages = detectUsedPackages(storyFiles);
|
|
18
|
+
const buildPromises = usedPackages.map(async (pkg) => {
|
|
19
|
+
try {
|
|
20
|
+
console.log(`Building package ${pkg}...`);
|
|
21
|
+
const { stdout, stderr } = await exec(`nx run ${pkg}:build`);
|
|
22
|
+
console.log(`Built package ${pkg}: ${stdout}`);
|
|
23
|
+
if (stderr) {
|
|
24
|
+
console.error(`Build warning/error for package ${pkg}: ${stderr}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error(`Error building package ${pkg}:`, error);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
await Promise.all(buildPromises);
|
|
32
|
+
const parsedPaths = parseTsConfig() || {};
|
|
33
|
+
const filteredParsedPaths = filterParsedPathsByUsedPackages(parsedPaths, usedPackages);
|
|
34
|
+
return Object.assign(Object.assign({}, config), { resolve: {
|
|
35
|
+
alias: Object.assign({}, filteredParsedPaths)
|
|
36
|
+
}, define: {
|
|
37
|
+
process: {
|
|
38
|
+
env: {}
|
|
39
|
+
}
|
|
40
|
+
} });
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export default config;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { themes } from "@storybook/theming";
|
|
2
|
+
export const parameters = {
|
|
3
|
+
darkMode: {
|
|
4
|
+
dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
|
|
5
|
+
light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
|
|
6
|
+
current: 'light',
|
|
7
|
+
stylePreview: true
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { exec as execCallback } from 'child_process';
|
|
3
|
+
export declare const exec: typeof execCallback.__promisify__;
|
|
4
|
+
/**
|
|
5
|
+
* Recursively retrieves all story files (.stories.ts/.stories.tsx) in a directory.
|
|
6
|
+
* @param dir The directory to search.
|
|
7
|
+
* @returns Array of story file paths.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getStoryFiles: (dir: string) => string[];
|
|
10
|
+
/**
|
|
11
|
+
* Detects which internal packages are used in the provided story files.
|
|
12
|
+
* It looks at every import that starts with the given package alias prefix,
|
|
13
|
+
* then extracts the package name (the segment immediately following the prefix).
|
|
14
|
+
*
|
|
15
|
+
* @param stories Array of story file paths.
|
|
16
|
+
* @returns Array of unique package names (e.g. ['foo', 'bar']).
|
|
17
|
+
*/
|
|
18
|
+
export declare const detectUsedPackages: (stories: string[]) => string[];
|
|
19
|
+
/**
|
|
20
|
+
* Extracts all import paths from a file using the TypeScript compiler API.
|
|
21
|
+
* @param filePath The file path to parse.
|
|
22
|
+
* @returns Array of import strings.
|
|
23
|
+
*/
|
|
24
|
+
export declare const extractImports: (filePath: string) => string[];
|
|
25
|
+
/**
|
|
26
|
+
* Parses the tsconfig paths and resolves them to absolute paths.
|
|
27
|
+
* @param tsconfigPath The path to the tsconfig file.
|
|
28
|
+
* @returns An object mapping alias keys to absolute paths.
|
|
29
|
+
*/
|
|
30
|
+
export declare const parseTsConfig: () => Record<string, string> | null;
|
|
31
|
+
/**
|
|
32
|
+
* Filters the parsed tsconfig alias mapping to only include keys that correspond
|
|
33
|
+
* to the used packages.
|
|
34
|
+
*
|
|
35
|
+
* @param parsedPaths The full alias mapping from tsconfig.
|
|
36
|
+
* @param usedPackages Array of package names that are used (e.g. ['foo', 'bar']).
|
|
37
|
+
* @returns Filtered alias mapping.
|
|
38
|
+
*/
|
|
39
|
+
export declare const filterParsedPathsByUsedPackages: (parsedPaths: Record<string, string>, usedPackages: string[]) => Record<string, string>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const parameters: {
|
|
2
|
+
darkMode: {
|
|
3
|
+
dark: {
|
|
4
|
+
appBg: string;
|
|
5
|
+
base: "light" | "dark";
|
|
6
|
+
colorPrimary: string;
|
|
7
|
+
colorSecondary: string;
|
|
8
|
+
appContentBg: string;
|
|
9
|
+
appPreviewBg: string;
|
|
10
|
+
appBorderColor: string;
|
|
11
|
+
appBorderRadius: number;
|
|
12
|
+
fontBase: string;
|
|
13
|
+
fontCode: string;
|
|
14
|
+
textColor: string;
|
|
15
|
+
textInverseColor: string;
|
|
16
|
+
textMutedColor: string;
|
|
17
|
+
barTextColor: string;
|
|
18
|
+
barHoverColor: string;
|
|
19
|
+
barSelectedColor: string;
|
|
20
|
+
barBg: string;
|
|
21
|
+
buttonBg: string;
|
|
22
|
+
buttonBorder: string;
|
|
23
|
+
booleanBg: string;
|
|
24
|
+
booleanSelectedBg: string;
|
|
25
|
+
inputBg: string;
|
|
26
|
+
inputBorder: string;
|
|
27
|
+
inputTextColor: string;
|
|
28
|
+
inputBorderRadius: number;
|
|
29
|
+
brandTitle?: string;
|
|
30
|
+
brandUrl?: string;
|
|
31
|
+
brandImage?: string;
|
|
32
|
+
brandTarget?: string;
|
|
33
|
+
gridCellSize?: number;
|
|
34
|
+
};
|
|
35
|
+
light: {
|
|
36
|
+
appBg: string;
|
|
37
|
+
base: "light" | "dark";
|
|
38
|
+
colorPrimary: string;
|
|
39
|
+
colorSecondary: string;
|
|
40
|
+
appContentBg: string;
|
|
41
|
+
appPreviewBg: string;
|
|
42
|
+
appBorderColor: string;
|
|
43
|
+
appBorderRadius: number;
|
|
44
|
+
fontBase: string;
|
|
45
|
+
fontCode: string;
|
|
46
|
+
textColor: string;
|
|
47
|
+
textInverseColor: string;
|
|
48
|
+
textMutedColor: string;
|
|
49
|
+
barTextColor: string;
|
|
50
|
+
barHoverColor: string;
|
|
51
|
+
barSelectedColor: string;
|
|
52
|
+
barBg: string;
|
|
53
|
+
buttonBg: string;
|
|
54
|
+
buttonBorder: string;
|
|
55
|
+
booleanBg: string;
|
|
56
|
+
booleanSelectedBg: string;
|
|
57
|
+
inputBg: string;
|
|
58
|
+
inputBorder: string;
|
|
59
|
+
inputTextColor: string;
|
|
60
|
+
inputBorderRadius: number;
|
|
61
|
+
brandTitle?: string;
|
|
62
|
+
brandUrl?: string;
|
|
63
|
+
brandImage?: string;
|
|
64
|
+
brandTarget?: string;
|
|
65
|
+
gridCellSize?: number;
|
|
66
|
+
};
|
|
67
|
+
current: string;
|
|
68
|
+
stylePreview: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
package/dist/types/components/casino-challenges-overlay-slider/casino-challenges-overlay-slider.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { IChallenge } from '../../utils/types';
|
|
3
|
+
export declare class CasinoChallengesOverlaySlider {
|
|
4
|
+
mbSource: string;
|
|
5
|
+
clientStyling: string;
|
|
6
|
+
clientStylingUrl: string;
|
|
7
|
+
translationUrl: string;
|
|
8
|
+
language: string;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
challenges: IChallenge[];
|
|
11
|
+
initialProgressId: string;
|
|
12
|
+
activeTabIndex: string;
|
|
13
|
+
currentIndex: any;
|
|
14
|
+
slideWidth: number;
|
|
15
|
+
slideHeight: number;
|
|
16
|
+
isOneSlide: boolean;
|
|
17
|
+
activeChallengeChange: EventEmitter;
|
|
18
|
+
private sliderContainer;
|
|
19
|
+
private slideGap;
|
|
20
|
+
private isDragging;
|
|
21
|
+
private startX;
|
|
22
|
+
private currentTranslate;
|
|
23
|
+
private baseTranslate;
|
|
24
|
+
private stylingContainer;
|
|
25
|
+
private stylingSubscription;
|
|
26
|
+
private resizeObserver?;
|
|
27
|
+
private readonly slideWidthToContainer;
|
|
28
|
+
private readonly slideHeightToContainer;
|
|
29
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
30
|
+
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
31
|
+
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
32
|
+
onCurrentIndexChange(newValue: number, oldValue: number): void;
|
|
33
|
+
onChallengesChange(newValue: IChallenge[]): void;
|
|
34
|
+
onInitialProgressIdChange(newValue: string, oldValue: string): void;
|
|
35
|
+
componentWillLoad(): void;
|
|
36
|
+
componentDidLoad(): void;
|
|
37
|
+
disconnectedCallback(): void;
|
|
38
|
+
private updateCurrentIndex;
|
|
39
|
+
private setSliderPosition;
|
|
40
|
+
private getCarouselItems;
|
|
41
|
+
private scheduleReset;
|
|
42
|
+
private next;
|
|
43
|
+
private prev;
|
|
44
|
+
private setPositionByIndex;
|
|
45
|
+
private onPointerDown;
|
|
46
|
+
private getBaseTranslate;
|
|
47
|
+
private onPointerMove;
|
|
48
|
+
private onPointerUp;
|
|
49
|
+
private disableTransition;
|
|
50
|
+
private goToSlide;
|
|
51
|
+
private getRealIndex;
|
|
52
|
+
render(): any;
|
|
53
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { IChallenge } from '../../../utils/types';
|
|
3
|
+
export declare class CasinoChallengesOverlaySlider {
|
|
4
|
+
challenge: IChallenge;
|
|
5
|
+
index: number;
|
|
6
|
+
arrLength: number;
|
|
7
|
+
currentIndex: number;
|
|
8
|
+
language: string;
|
|
9
|
+
isOptedOut: boolean;
|
|
10
|
+
slideWidth: number;
|
|
11
|
+
slideHeight: number;
|
|
12
|
+
timeLeft: string;
|
|
13
|
+
challengeExpired: EventEmitter;
|
|
14
|
+
private timerId;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
componentWillLoad(): void;
|
|
18
|
+
private updateTime;
|
|
19
|
+
private getBadgeContent;
|
|
20
|
+
private isItemActive;
|
|
21
|
+
render(): any;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoChallengesOverlaySlider } from './casino-challenges-overlay-slider';
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { IChallenge } from "./utils/types";
|
|
9
|
+
export { IChallenge } from "./utils/types";
|
|
10
|
+
export namespace Components {
|
|
11
|
+
interface CasinoChallengesOverlayCard {
|
|
12
|
+
"arrLength": number;
|
|
13
|
+
"challenge": IChallenge;
|
|
14
|
+
"currentIndex": number;
|
|
15
|
+
"index": number;
|
|
16
|
+
"isOptedOut": boolean;
|
|
17
|
+
"language": string;
|
|
18
|
+
"slideHeight": number;
|
|
19
|
+
"slideWidth": number;
|
|
20
|
+
}
|
|
21
|
+
interface CasinoChallengesOverlaySlider {
|
|
22
|
+
"activeTabIndex": string;
|
|
23
|
+
"challenges": IChallenge[];
|
|
24
|
+
"clientStyling": string;
|
|
25
|
+
"clientStylingUrl": string;
|
|
26
|
+
"initialProgressId": string;
|
|
27
|
+
"isMobile": boolean;
|
|
28
|
+
"language": string;
|
|
29
|
+
"mbSource": string;
|
|
30
|
+
"translationUrl": string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export interface CasinoChallengesOverlayCardCustomEvent<T> extends CustomEvent<T> {
|
|
34
|
+
detail: T;
|
|
35
|
+
target: HTMLCasinoChallengesOverlayCardElement;
|
|
36
|
+
}
|
|
37
|
+
export interface CasinoChallengesOverlaySliderCustomEvent<T> extends CustomEvent<T> {
|
|
38
|
+
detail: T;
|
|
39
|
+
target: HTMLCasinoChallengesOverlaySliderElement;
|
|
40
|
+
}
|
|
41
|
+
declare global {
|
|
42
|
+
interface HTMLCasinoChallengesOverlayCardElementEventMap {
|
|
43
|
+
"challengeExpired": any;
|
|
44
|
+
}
|
|
45
|
+
interface HTMLCasinoChallengesOverlayCardElement extends Components.CasinoChallengesOverlayCard, HTMLStencilElement {
|
|
46
|
+
addEventListener<K extends keyof HTMLCasinoChallengesOverlayCardElementEventMap>(type: K, listener: (this: HTMLCasinoChallengesOverlayCardElement, ev: CasinoChallengesOverlayCardCustomEvent<HTMLCasinoChallengesOverlayCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
47
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
48
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
49
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
50
|
+
removeEventListener<K extends keyof HTMLCasinoChallengesOverlayCardElementEventMap>(type: K, listener: (this: HTMLCasinoChallengesOverlayCardElement, ev: CasinoChallengesOverlayCardCustomEvent<HTMLCasinoChallengesOverlayCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
51
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
52
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
53
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
54
|
+
}
|
|
55
|
+
var HTMLCasinoChallengesOverlayCardElement: {
|
|
56
|
+
prototype: HTMLCasinoChallengesOverlayCardElement;
|
|
57
|
+
new (): HTMLCasinoChallengesOverlayCardElement;
|
|
58
|
+
};
|
|
59
|
+
interface HTMLCasinoChallengesOverlaySliderElementEventMap {
|
|
60
|
+
"activeChallengeChange": any;
|
|
61
|
+
}
|
|
62
|
+
interface HTMLCasinoChallengesOverlaySliderElement extends Components.CasinoChallengesOverlaySlider, HTMLStencilElement {
|
|
63
|
+
addEventListener<K extends keyof HTMLCasinoChallengesOverlaySliderElementEventMap>(type: K, listener: (this: HTMLCasinoChallengesOverlaySliderElement, ev: CasinoChallengesOverlaySliderCustomEvent<HTMLCasinoChallengesOverlaySliderElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
64
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
65
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
66
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
67
|
+
removeEventListener<K extends keyof HTMLCasinoChallengesOverlaySliderElementEventMap>(type: K, listener: (this: HTMLCasinoChallengesOverlaySliderElement, ev: CasinoChallengesOverlaySliderCustomEvent<HTMLCasinoChallengesOverlaySliderElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
68
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
69
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
70
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
71
|
+
}
|
|
72
|
+
var HTMLCasinoChallengesOverlaySliderElement: {
|
|
73
|
+
prototype: HTMLCasinoChallengesOverlaySliderElement;
|
|
74
|
+
new (): HTMLCasinoChallengesOverlaySliderElement;
|
|
75
|
+
};
|
|
76
|
+
interface HTMLElementTagNameMap {
|
|
77
|
+
"casino-challenges-overlay-card": HTMLCasinoChallengesOverlayCardElement;
|
|
78
|
+
"casino-challenges-overlay-slider": HTMLCasinoChallengesOverlaySliderElement;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
declare namespace LocalJSX {
|
|
82
|
+
interface CasinoChallengesOverlayCard {
|
|
83
|
+
"arrLength"?: number;
|
|
84
|
+
"challenge"?: IChallenge;
|
|
85
|
+
"currentIndex"?: number;
|
|
86
|
+
"index"?: number;
|
|
87
|
+
"isOptedOut"?: boolean;
|
|
88
|
+
"language"?: string;
|
|
89
|
+
"onChallengeExpired"?: (event: CasinoChallengesOverlayCardCustomEvent<any>) => void;
|
|
90
|
+
"slideHeight"?: number;
|
|
91
|
+
"slideWidth"?: number;
|
|
92
|
+
}
|
|
93
|
+
interface CasinoChallengesOverlaySlider {
|
|
94
|
+
"activeTabIndex"?: string;
|
|
95
|
+
"challenges"?: IChallenge[];
|
|
96
|
+
"clientStyling"?: string;
|
|
97
|
+
"clientStylingUrl"?: string;
|
|
98
|
+
"initialProgressId"?: string;
|
|
99
|
+
"isMobile"?: boolean;
|
|
100
|
+
"language"?: string;
|
|
101
|
+
"mbSource"?: string;
|
|
102
|
+
"onActiveChallengeChange"?: (event: CasinoChallengesOverlaySliderCustomEvent<any>) => void;
|
|
103
|
+
"translationUrl"?: string;
|
|
104
|
+
}
|
|
105
|
+
interface IntrinsicElements {
|
|
106
|
+
"casino-challenges-overlay-card": CasinoChallengesOverlayCard;
|
|
107
|
+
"casino-challenges-overlay-slider": CasinoChallengesOverlaySlider;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export { LocalJSX as JSX };
|
|
111
|
+
declare module "@stencil/core" {
|
|
112
|
+
export namespace JSX {
|
|
113
|
+
interface IntrinsicElements {
|
|
114
|
+
"casino-challenges-overlay-card": LocalJSX.CasinoChallengesOverlayCard & JSXBase.HTMLAttributes<HTMLCasinoChallengesOverlayCardElement>;
|
|
115
|
+
"casino-challenges-overlay-slider": LocalJSX.CasinoChallengesOverlaySlider & JSXBase.HTMLAttributes<HTMLCasinoChallengesOverlaySliderElement>;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/casino-challenges-overlay-slider';
|