@everymatrix/casino-play-random-game 1.44.0 → 1.45.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-play-random-game/casino-play-random-game.esm.js +1 -1
- package/dist/casino-play-random-game/p-b4a84056.entry.js +1 -0
- package/dist/casino-play-random-game/p-d2e799c3.js +2 -0
- package/dist/casino-play-random-game/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-play-random-game.cjs.entry.js +288 -308
- package/dist/cjs/casino-play-random-game.cjs.js +17 -11
- package/dist/cjs/index-4cc20a8d.js +1217 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-play-random-game/casino-play-random-game.css +0 -11
- package/dist/collection/components/casino-play-random-game/casino-play-random-game.js +432 -463
- package/dist/collection/components/casino-play-random-game/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +58 -58
- package/dist/collection/utils/utils.js +22 -22
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-play-random-game.entry.js +288 -308
- package/dist/esm/casino-play-random-game.js +14 -11
- package/dist/esm/index-7666b794.js +1190 -0
- package/dist/esm/loader.js +7 -13
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-play-random-game/casino-play-random-game.d.ts +72 -72
- package/dist/types/components/casino-play-random-game/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/casino-play-random-game/p-0f38b3f8.js +0 -1
- package/dist/casino-play-random-game/p-1a049c0f.entry.js +0 -1
- package/dist/cjs/index-8944e204.js +0 -1247
- package/dist/components/casino-play-random-game.d.ts +0 -11
- package/dist/components/casino-play-random-game.js +0 -375
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-58563736.js +0 -1221
- 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/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-play-random-game/.stencil/packages/casino-play-random-game/stencil.config.d.ts +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as bootstrapLazy } from './index-7666b794.js';
|
|
2
|
+
export { s as setNonce } from './index-7666b794.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return promiseResolve();
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const defineCustomElements = (win, options) => {
|
|
11
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
|
-
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["casino-play-random-game",[[1,"casino-play-random-game",{"endpoint":[513],"datasource":[513],"language":[513],"specificCategory":[513,"specific-category"],"iconVisible":[513,"icon-visible"],"iconVisibleOnAnim":[513,"icon-visible-on-anim"],"launchByGameCard":[513,"launch-by-game-card"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"gamesToShow":[32],"selectedGame":[32],"animationDone":[32],"animationStarted":[32]}]]]], options);
|
|
14
|
-
});
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["casino-play-random-game",[[1,"casino-play-random-game",{"endpoint":[513],"datasource":[513],"language":[513],"specificCategory":[513,"specific-category"],"iconVisible":[513,"icon-visible"],"iconVisibleOnAnim":[513,"icon-visible-on-anim"],"launchByGameCard":[513,"launch-by-game-card"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"gamesToShow":[32],"selectedGame":[32],"animationDone":[32],"animationStarted":[32]},null,{"endpoint":["watchEndpoint"],"datasource":["watchEndpoint"],"language":["watchEndpoint"],"translationUrl":["handleNewTranslations"],"iconVisible":["handleIsIconVisible"]}]]]], options);
|
|
15
9
|
};
|
|
16
10
|
|
|
17
11
|
export { defineCustomElements };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'casino-play-random-game',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: true,
|
|
6
|
+
minifyJs: false,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www',
|
|
14
|
+
serviceWorker: null // disable service workers
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
package/dist/stencil.config.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { sass } from
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
2
|
export const config = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
esmLoaderPath: '../loader',
|
|
3
|
+
namespace: 'casino-play-random-game',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
10
9
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: 'www',
|
|
19
|
-
serviceWorker: null, // disable service workers
|
|
20
|
-
},
|
|
21
|
-
],
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
22
17
|
};
|
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
export declare class CasinoPlayRandomGame {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Endpoint URL for the source of data
|
|
4
|
+
*/
|
|
5
|
+
endpoint: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the datasource, as configured in CE.
|
|
8
|
+
*/
|
|
9
|
+
datasource: string;
|
|
10
|
+
/**
|
|
11
|
+
* Language of the widget
|
|
12
|
+
*/
|
|
13
|
+
language: string;
|
|
14
|
+
/**
|
|
15
|
+
* Configure a specific category for randomising the games.
|
|
16
|
+
*/
|
|
17
|
+
specificCategory: string;
|
|
18
|
+
/**
|
|
19
|
+
* Icon visible initially
|
|
20
|
+
*/
|
|
21
|
+
iconVisible: string;
|
|
22
|
+
/**
|
|
23
|
+
* Icon visible while rolling
|
|
24
|
+
*/
|
|
25
|
+
iconVisibleOnAnim: string;
|
|
26
|
+
/**
|
|
27
|
+
* Open event on the game card.
|
|
28
|
+
*/
|
|
29
|
+
launchByGameCard: string;
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via string
|
|
32
|
+
*/
|
|
33
|
+
clientStyling: string;
|
|
34
|
+
/**
|
|
35
|
+
* Client custom styling via url
|
|
36
|
+
*/
|
|
37
|
+
clientStylingUrl: string;
|
|
38
|
+
/**
|
|
39
|
+
* Translations via URL
|
|
40
|
+
*/
|
|
41
|
+
translationUrl: string;
|
|
42
|
+
host: HTMLElement;
|
|
43
|
+
private hasErrors;
|
|
44
|
+
private limitStylingAppends;
|
|
45
|
+
private isLoading;
|
|
46
|
+
private gamesToShow;
|
|
47
|
+
private selectedGame;
|
|
48
|
+
private animationDone;
|
|
49
|
+
private animationStarted;
|
|
50
|
+
private gameContainer;
|
|
51
|
+
private animation;
|
|
52
|
+
private selectedGameIndex;
|
|
53
|
+
private selectedGameEl;
|
|
54
|
+
private iconVisibility;
|
|
55
|
+
watchEndpoint(newValue: string, oldValue: string): void;
|
|
56
|
+
handleNewTranslations(): void;
|
|
57
|
+
handleIsIconVisible(): void;
|
|
58
|
+
connectedCallback(): void;
|
|
59
|
+
componentWillLoad(): Promise<any>;
|
|
60
|
+
componentDidLoad(): void;
|
|
61
|
+
fetchGameList(): Promise<any>;
|
|
62
|
+
shuffle: (array: any[]) => any[];
|
|
63
|
+
setUpGames(games: any): any[];
|
|
64
|
+
selectRandomGame(): void;
|
|
65
|
+
playRandomGame(): void;
|
|
66
|
+
respin(): void;
|
|
67
|
+
animateGames(): void;
|
|
68
|
+
playGame(): void;
|
|
69
|
+
showGameInfo(): void;
|
|
70
|
+
setClientStyling: () => void;
|
|
71
|
+
setClientStylingURL: () => void;
|
|
72
|
+
renderGameDetails(): HTMLElement;
|
|
73
|
+
render(): void;
|
|
74
74
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoPlayRandomGame } from './casino-play-random-game';
|