@everymatrix/casino-game-thumb-view 1.44.0 → 1.45.2
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-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
- package/dist/casino-game-thumb-view/p-2207062c.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-39684b4a.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-af0284b5.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-b73b7a18.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-bd016895.entry.js +7 -0
- package/dist/casino-game-thumb-view/p-d2580653.js +8 -0
- package/dist/casino-game-thumb-view/p-d48c3566.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-e1255160.js +1 -0
- package/dist/casino-game-thumb-view/p-eef6f908.js +2 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +327 -322
- package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +45 -45
- package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +35 -34
- package/dist/cjs/casino-game-thumb-view.cjs.js +17 -11
- package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +469 -519
- package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +258 -251
- package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +14 -12
- package/dist/cjs/game-thumbnail-5a34c727.js +78 -0
- package/dist/cjs/index-48d13981.js +1709 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/locale.utils-53bf703a.js +132 -0
- package/dist/cjs/{utils-a0afc0a9.js → utils-c4ed3adc.js} +407 -404
- package/dist/collection/collection-manifest.json +10 -10
- package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +251 -230
- package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +136 -114
- package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +126 -119
- package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.css +1 -1
- package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +1023 -1027
- package/dist/collection/components/casino-game-thumb-view/index.js +1 -0
- package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +78 -80
- package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +153 -150
- package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +201 -206
- package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +71 -58
- package/dist/collection/constants/game-thumbnail.js +66 -66
- package/dist/collection/models/casino-game-thumb-view.js +6 -6
- package/dist/collection/models/currency-symbols.js +170 -170
- package/dist/collection/utils/baccarat-board-svg.js +225 -225
- package/dist/collection/utils/locale.utils.js +122 -122
- package/dist/collection/utils/utils.js +41 -41
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-extrainfo-baccarat.entry.js +327 -322
- package/dist/esm/casino-extrainfo-blackjack.entry.js +45 -45
- package/dist/esm/casino-extrainfo-roulette.entry.js +35 -34
- package/dist/esm/casino-game-thumb-view.js +14 -11
- package/dist/esm/casino-game-thumb-view_2.entry.js +469 -519
- package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +258 -251
- package/dist/esm/casino-normal-game-thumbnail.entry.js +14 -12
- package/dist/esm/game-thumbnail-035e97e2.js +72 -0
- package/dist/esm/index-8c9a8030.js +1681 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/locale.utils-0c514ca8.js +130 -0
- package/dist/{components/utils.js → esm/utils-090ac2e9.js} +407 -404
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +12 -35
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.d.ts +36 -36
- package/dist/types/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.d.ts +33 -33
- package/dist/types/components/casino-extrainfo-roulette/casino-extrainfo-roulette.d.ts +18 -18
- package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +213 -213
- package/dist/types/components/casino-game-thumb-view/index.d.ts +1 -0
- package/dist/types/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.d.ts +14 -14
- package/dist/types/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.d.ts +13 -13
- package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts +28 -28
- package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts +4 -4
- package/dist/types/components.d.ts +33 -2
- package/dist/types/constants/game-thumbnail.d.ts +66 -66
- package/dist/types/models/casino-game-thumb-view.d.ts +107 -107
- package/dist/types/models/currency-symbols.d.ts +170 -170
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/baccarat-board-svg.d.ts +29 -29
- 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 -8
- package/dist/assets/baccarat.svg +0 -43
- package/dist/assets/fav.svg +0 -9
- package/dist/assets/favorite.svg +0 -12
- package/dist/assets/seat.svg +0 -6
- package/dist/assets/unfav.svg +0 -20
- package/dist/casino-game-thumb-view/p-1bbf4b70.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-42bf2034.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-46dbb1cb.js +0 -1
- package/dist/casino-game-thumb-view/p-6a6b2a78.js +0 -8
- package/dist/casino-game-thumb-view/p-7ae107ed.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-9cbfffbc.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-d961aec4.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-db43bb56.entry.js +0 -7
- package/dist/cjs/game-thumbnail-31d518f0.js +0 -78
- package/dist/cjs/index-65a1d768.js +0 -1796
- package/dist/cjs/locale.utils-aa160787.js +0 -132
- package/dist/components/casino-extrainfo-baccarat.d.ts +0 -11
- package/dist/components/casino-extrainfo-baccarat.js +0 -400
- package/dist/components/casino-extrainfo-blackjack.d.ts +0 -11
- package/dist/components/casino-extrainfo-blackjack.js +0 -92
- package/dist/components/casino-extrainfo-roulette.d.ts +0 -11
- package/dist/components/casino-extrainfo-roulette.js +0 -78
- package/dist/components/casino-game-thumb-view.d.ts +0 -11
- package/dist/components/casino-game-thumb-view.js +0 -1625
- package/dist/components/casino-game-thumbnail-betlimit.d.ts +0 -11
- package/dist/components/casino-game-thumbnail-betlimit.js +0 -6
- package/dist/components/casino-game-thumbnail-betlimit2.js +0 -227
- package/dist/components/casino-game-thumbnail-extrainfo.d.ts +0 -11
- package/dist/components/casino-game-thumbnail-extrainfo.js +0 -6
- package/dist/components/casino-game-thumbnail-extrainfo2.js +0 -96
- package/dist/components/casino-game-thumbnail-overlay.d.ts +0 -11
- package/dist/components/casino-game-thumbnail-overlay.js +0 -6
- package/dist/components/casino-game-thumbnail-overlay2.js +0 -69
- package/dist/components/casino-normal-game-thumbnail.d.ts +0 -11
- package/dist/components/casino-normal-game-thumbnail.js +0 -52
- package/dist/components/game-thumbnail.js +0 -72
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/locale.utils.js +0 -130
- package/dist/esm/game-thumbnail-0a56ee03.js +0 -72
- package/dist/esm/index-1e44dd9f.js +0 -1769
- package/dist/esm/locale.utils-e0cf897e.js +0 -130
- 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/esm/utils-e9314132.js +0 -5739
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-game-thumb-view/.stencil/packages/casino-game-thumb-view/stencil.config.d.ts +0 -2
- /package/dist/casino-game-thumb-view/{p-2d5f59fe.js → p-2d02adb1.js} +0 -0
- /package/dist/casino-game-thumb-view/{p-1e63a1ab.js → p-59ceeaaa.js} +0 -0
@@ -2,220 +2,220 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { CasinoGameThumbnailInfo } from '../../models/casino-game-thumb-view';
|
3
3
|
import { EventSourcePolyfill } from 'event-source-polyfill';
|
4
4
|
export declare class CasinoGameThumbView {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
language: string;
|
9
|
-
/**
|
10
|
-
* Widget Setting, Api endpoint for loading game details
|
11
|
-
*/
|
12
|
-
endpoint: string;
|
13
|
-
/**
|
14
|
-
* Widget Setting, User id
|
15
|
-
*/
|
16
|
-
userId: string | number;
|
17
|
-
/**
|
18
|
-
* Widget Setting, User session
|
19
|
-
*/
|
20
|
-
/**
|
21
|
-
* Widget Setting, Show game name if set it as true
|
22
|
-
*/
|
23
|
-
showGameName: boolean;
|
24
|
-
/**
|
25
|
-
* Widget Setting, User session
|
26
|
-
*/
|
27
|
-
session: string;
|
28
|
-
/**
|
29
|
-
* Widget Setting, game showed in favorited category
|
30
|
-
*/
|
31
|
-
showFavoredCategory: boolean;
|
32
|
-
/**
|
33
|
-
* Widget Setting, Client custom styling via string
|
34
|
-
*/
|
35
|
-
clientStyling: string;
|
36
|
-
/**
|
37
|
-
* Widget Setting, Client custom styling via url content
|
38
|
-
*/
|
39
|
-
clientStylingUrl: string;
|
40
|
-
/**
|
41
|
-
* Widget Setting, show game in a frame when user clicked 'start'
|
42
|
-
*/
|
43
|
-
integratedGameframeMobile: boolean;
|
44
|
-
/**
|
45
|
-
* Widget Setting, show game in a frame when user clicked 'start'
|
46
|
-
* the frame url when integratedGameframeDesktop is true
|
47
|
-
*/
|
48
|
-
gamepageModalurl: string;
|
49
|
-
/**
|
50
|
-
* Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
|
51
|
-
* gamepageModalurl value should be set
|
52
|
-
*/
|
53
|
-
integratedGameframeDesktop: boolean;
|
54
|
-
/**
|
55
|
-
* Widget Setting, Load game details when set it as true, default value: false
|
56
|
-
* When loadDetails is true and type=='live-casino-tables',
|
57
|
-
* Load gameDetails by endpoint/vendor/gameId if livelobbyEndpoint is null
|
58
|
-
*/
|
59
|
-
loadDetails: boolean;
|
60
|
-
/**
|
61
|
-
* Widget Setting, showRoundBoard, default value: false
|
62
|
-
*/
|
63
|
-
showRoundBoard: boolean;
|
64
|
-
/**
|
65
|
-
* Widget Setting
|
66
|
-
* Valid value: 'disconnect'/'connect'
|
67
|
-
* Flag to start a updater when a live game show in visible area
|
68
|
-
* when visibilityConnect='connect' && connectLive = 'connect'
|
69
|
-
*/
|
70
|
-
visibilityConnect: string;
|
71
|
-
/**
|
72
|
-
* Widget Setting, flag to start a updater when a live game show in visible area
|
73
|
-
* Valid value: 'disconnect'/'connect'
|
74
|
-
* Flag to start a updater when a live game show in visible area
|
75
|
-
* when 'connectLive'= 'connect'
|
76
|
-
*/
|
77
|
-
connectLive: string;
|
78
|
-
/**
|
79
|
-
* Game Property, default ''
|
80
|
-
*/
|
81
|
-
gameCategory: string;
|
82
|
-
/**
|
83
|
-
* Widget Setting, Live lobby endpoint, use to start a game
|
84
|
-
* Load game info by this url if type=='live-casino-tables'
|
85
|
-
*/
|
86
|
-
livelobbyEndpoint: string;
|
87
|
-
/**
|
88
|
-
* Game Property, GameId
|
89
|
-
*/
|
90
|
-
gameId: number | string;
|
91
|
-
/**
|
92
|
-
* Game Property, Game Name
|
93
|
-
*/
|
94
|
-
gameName: string;
|
95
|
-
/**
|
96
|
-
* Game Property, Game SubVendor
|
97
|
-
*/
|
98
|
-
subVendor: string;
|
99
|
-
/**
|
100
|
-
* Game Property, Game vendor
|
101
|
-
*/
|
102
|
-
gameVendor: string;
|
103
|
-
/**
|
104
|
-
* Game Property, Game funMode
|
105
|
-
*/
|
106
|
-
hasFunMode: boolean;
|
107
|
-
/**
|
108
|
-
* Game Property, hasAnonymousFunMode
|
109
|
-
*/
|
110
|
-
hasAnonymousFunMode: boolean;
|
111
|
-
/**
|
112
|
-
* Game Property, Game lunch platform
|
113
|
-
*/
|
114
|
-
platform: string;
|
115
|
-
/**
|
116
|
-
* Game Property, Game thumbnail
|
117
|
-
*/
|
118
|
-
thumbnail: string;
|
119
|
-
/**
|
120
|
-
* Game Property, is Game Favorited
|
121
|
-
*/
|
122
|
-
isFavorite: boolean;
|
123
|
-
/**
|
124
|
-
* Game Property, is Game new
|
125
|
-
*/
|
126
|
-
isNew: boolean;
|
127
|
-
/**
|
128
|
-
* Game Property, Customize game cell size
|
129
|
-
*/
|
130
|
-
cellSize: string;
|
131
|
-
/**
|
132
|
-
* Game Property, gameTag
|
133
|
-
*/
|
134
|
-
gameTag: string;
|
135
|
-
/**
|
136
|
-
* Game Property, type, isLiveCasino when type == 'live-casino-tables'
|
137
|
-
*/
|
138
|
-
type: string;
|
139
|
-
gameInfo: CasinoGameThumbnailInfo;
|
140
|
-
isTableFull: boolean;
|
141
|
-
hover: boolean;
|
142
|
-
thumbnailLoaded: boolean;
|
143
|
-
extraInfoRef?: any;
|
144
|
-
extraInfoSlotRef?: any;
|
145
|
-
liveLobbyConnection: EventSourcePolyfill;
|
146
|
-
containerClassWhenDetailChange: string;
|
147
|
-
extraInfoWidget: string;
|
148
|
-
private isUserLoggedIn;
|
149
|
-
private stylingContainer;
|
150
|
-
private isLiveCasino;
|
151
|
-
private limitStylingAppends;
|
152
|
-
onSessionChanged(): void;
|
153
|
-
onTableFullChanged(newVal: boolean, oldVal: boolean): void;
|
154
|
-
toggleFavoriteCasinoGameEvent: EventEmitter<number | string>;
|
155
|
-
handleMouseOver(event: MouseEvent): void;
|
156
|
-
gameFavoritedHandler(event: CustomEvent): void;
|
157
|
-
connectLiveHandler(): void;
|
158
|
-
visibilityConnectHandler(): void;
|
159
|
-
gameDetailChangeHandler(e: MessageEvent): void;
|
160
|
-
messageHandler(e: any): void;
|
161
|
-
resetLiveProperties(): void;
|
162
|
-
isBlackJack(gameCategory: string): boolean;
|
163
|
-
isBaccarat(gameCategory: string): boolean;
|
164
|
-
/**
|
165
|
-
* Calculate component properties by game info,
|
166
|
-
* eg: isLiveCasino, gameInfo, isTableFull
|
167
|
-
*/
|
168
|
-
initCtrlProperties(): void;
|
169
|
-
/**
|
170
|
-
* Parse game info by game info api response
|
171
|
-
* @param data
|
172
|
-
*/
|
173
|
-
parseGameResponse(data: Array<CasinoGameThumbnailInfo>): void;
|
174
|
-
/**
|
175
|
-
* Parse game detail info, set it to game info
|
176
|
-
*/
|
177
|
-
parseGameDetailsResponse(): void;
|
178
|
-
connectGameToLiveLobby(): void;
|
179
|
-
disconnectGameFromLiveLobby(): void;
|
180
|
-
toggleConnect(): void;
|
181
|
-
toggleVisibilityConnect(): void;
|
182
|
-
/**
|
183
|
-
* Get game base info from game api(casino/games/{id})
|
184
|
-
* @private
|
185
|
-
*/
|
186
|
-
loadGameById(): void;
|
187
|
-
private loadGameInfoByLobbyEndpoint;
|
188
|
-
private loadGameDetailInfo;
|
189
|
-
/**
|
190
|
-
* Toggle game favorite property
|
191
|
-
* @param gameId
|
192
|
-
* @private
|
193
|
-
*/
|
194
|
-
private toggleFavoriteGame;
|
195
|
-
/**
|
196
|
-
* Generate gameInfo obj by props
|
197
|
-
* @private
|
198
|
-
*/
|
199
|
-
private generateGameInfoByProps;
|
200
|
-
triggerExtraInfoLoad(): void;
|
201
|
-
componentDidRender(): void;
|
202
|
-
componentDidLoad(): void;
|
203
|
-
componentWillLoad(): void;
|
204
|
-
disconnectedCallback(): void;
|
205
|
-
setClientStyling: () => void;
|
206
|
-
setClientStylingURL: () => void;
|
207
|
-
getWidgetTypeByGameCategory(gameCategory: string): any;
|
208
|
-
getGameCategoryType: () => string;
|
209
|
-
getGameContainerClass: () => string;
|
210
|
-
getGameOverlayProps(): {
|
211
|
-
gameName: string;
|
212
|
-
gameId: string | number;
|
213
|
-
gameVendor: string;
|
214
|
-
hasFunMode: boolean;
|
5
|
+
/**
|
6
|
+
* Widget Setting, Game language
|
7
|
+
*/
|
215
8
|
language: string;
|
9
|
+
/**
|
10
|
+
* Widget Setting, Api endpoint for loading game details
|
11
|
+
*/
|
12
|
+
endpoint: string;
|
13
|
+
/**
|
14
|
+
* Widget Setting, User id
|
15
|
+
*/
|
16
|
+
userId: string | number;
|
17
|
+
/**
|
18
|
+
* Widget Setting, User session
|
19
|
+
*/
|
20
|
+
/**
|
21
|
+
* Widget Setting, Show game name if set it as true
|
22
|
+
*/
|
23
|
+
showGameName: boolean;
|
24
|
+
/**
|
25
|
+
* Widget Setting, User session
|
26
|
+
*/
|
27
|
+
session: string;
|
28
|
+
/**
|
29
|
+
* Widget Setting, game showed in favorited category
|
30
|
+
*/
|
31
|
+
showFavoredCategory: boolean;
|
32
|
+
/**
|
33
|
+
* Widget Setting, Client custom styling via string
|
34
|
+
*/
|
35
|
+
clientStyling: string;
|
36
|
+
/**
|
37
|
+
* Widget Setting, Client custom styling via url content
|
38
|
+
*/
|
39
|
+
clientStylingUrl: string;
|
40
|
+
/**
|
41
|
+
* Widget Setting, show game in a frame when user clicked 'start'
|
42
|
+
*/
|
216
43
|
integratedGameframeMobile: boolean;
|
217
|
-
|
44
|
+
/**
|
45
|
+
* Widget Setting, show game in a frame when user clicked 'start'
|
46
|
+
* the frame url when integratedGameframeDesktop is true
|
47
|
+
*/
|
218
48
|
gamepageModalurl: string;
|
219
|
-
|
220
|
-
|
49
|
+
/**
|
50
|
+
* Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
|
51
|
+
* gamepageModalurl value should be set
|
52
|
+
*/
|
53
|
+
integratedGameframeDesktop: boolean;
|
54
|
+
/**
|
55
|
+
* Widget Setting, Load game details when set it as true, default value: false
|
56
|
+
* When loadDetails is true and type=='live-casino-tables',
|
57
|
+
* Load gameDetails by endpoint/vendor/gameId if livelobbyEndpoint is null
|
58
|
+
*/
|
59
|
+
loadDetails: boolean;
|
60
|
+
/**
|
61
|
+
* Widget Setting, showRoundBoard, default value: false
|
62
|
+
*/
|
63
|
+
showRoundBoard: boolean;
|
64
|
+
/**
|
65
|
+
* Widget Setting
|
66
|
+
* Valid value: 'disconnect'/'connect'
|
67
|
+
* Flag to start a updater when a live game show in visible area
|
68
|
+
* when visibilityConnect='connect' && connectLive = 'connect'
|
69
|
+
*/
|
70
|
+
visibilityConnect: string;
|
71
|
+
/**
|
72
|
+
* Widget Setting, flag to start a updater when a live game show in visible area
|
73
|
+
* Valid value: 'disconnect'/'connect'
|
74
|
+
* Flag to start a updater when a live game show in visible area
|
75
|
+
* when 'connectLive'= 'connect'
|
76
|
+
*/
|
77
|
+
connectLive: string;
|
78
|
+
/**
|
79
|
+
* Game Property, default ''
|
80
|
+
*/
|
81
|
+
gameCategory: string;
|
82
|
+
/**
|
83
|
+
* Widget Setting, Live lobby endpoint, use to start a game
|
84
|
+
* Load game info by this url if type=='live-casino-tables'
|
85
|
+
*/
|
86
|
+
livelobbyEndpoint: string;
|
87
|
+
/**
|
88
|
+
* Game Property, GameId
|
89
|
+
*/
|
90
|
+
gameId: number | string;
|
91
|
+
/**
|
92
|
+
* Game Property, Game Name
|
93
|
+
*/
|
94
|
+
gameName: string;
|
95
|
+
/**
|
96
|
+
* Game Property, Game SubVendor
|
97
|
+
*/
|
98
|
+
subVendor: string;
|
99
|
+
/**
|
100
|
+
* Game Property, Game vendor
|
101
|
+
*/
|
102
|
+
gameVendor: string;
|
103
|
+
/**
|
104
|
+
* Game Property, Game funMode
|
105
|
+
*/
|
106
|
+
hasFunMode: boolean;
|
107
|
+
/**
|
108
|
+
* Game Property, hasAnonymousFunMode
|
109
|
+
*/
|
110
|
+
hasAnonymousFunMode: boolean;
|
111
|
+
/**
|
112
|
+
* Game Property, Game lunch platform
|
113
|
+
*/
|
114
|
+
platform: string;
|
115
|
+
/**
|
116
|
+
* Game Property, Game thumbnail
|
117
|
+
*/
|
118
|
+
thumbnail: string;
|
119
|
+
/**
|
120
|
+
* Game Property, is Game Favorited
|
121
|
+
*/
|
122
|
+
isFavorite: boolean;
|
123
|
+
/**
|
124
|
+
* Game Property, is Game new
|
125
|
+
*/
|
126
|
+
isNew: boolean;
|
127
|
+
/**
|
128
|
+
* Game Property, Customize game cell size
|
129
|
+
*/
|
130
|
+
cellSize: string;
|
131
|
+
/**
|
132
|
+
* Game Property, gameTag
|
133
|
+
*/
|
134
|
+
gameTag: string;
|
135
|
+
/**
|
136
|
+
* Game Property, type, isLiveCasino when type == 'live-casino-tables'
|
137
|
+
*/
|
138
|
+
type: string;
|
139
|
+
gameInfo: CasinoGameThumbnailInfo;
|
140
|
+
isTableFull: boolean;
|
141
|
+
hover: boolean;
|
142
|
+
thumbnailLoaded: boolean;
|
143
|
+
extraInfoRef?: any;
|
144
|
+
extraInfoSlotRef?: any;
|
145
|
+
liveLobbyConnection: EventSourcePolyfill;
|
146
|
+
containerClassWhenDetailChange: string;
|
147
|
+
extraInfoWidget: string;
|
148
|
+
private isUserLoggedIn;
|
149
|
+
private stylingContainer;
|
150
|
+
private isLiveCasino;
|
151
|
+
private limitStylingAppends;
|
152
|
+
onSessionChanged(): void;
|
153
|
+
onTableFullChanged(newVal: boolean, oldVal: boolean): void;
|
154
|
+
toggleFavoriteCasinoGameEvent: EventEmitter<number | string>;
|
155
|
+
handleMouseOver(event: MouseEvent): void;
|
156
|
+
gameFavoritedHandler(event: CustomEvent): void;
|
157
|
+
connectLiveHandler(): void;
|
158
|
+
visibilityConnectHandler(): void;
|
159
|
+
gameDetailChangeHandler(e: MessageEvent): void;
|
160
|
+
messageHandler(e: any): void;
|
161
|
+
resetLiveProperties(): void;
|
162
|
+
isBlackJack(gameCategory: string): boolean;
|
163
|
+
isBaccarat(gameCategory: string): boolean;
|
164
|
+
/**
|
165
|
+
* Calculate component properties by game info,
|
166
|
+
* eg: isLiveCasino, gameInfo, isTableFull
|
167
|
+
*/
|
168
|
+
initCtrlProperties(): void;
|
169
|
+
/**
|
170
|
+
* Parse game info by game info api response
|
171
|
+
* @param data
|
172
|
+
*/
|
173
|
+
parseGameResponse(data: Array<CasinoGameThumbnailInfo>): void;
|
174
|
+
/**
|
175
|
+
* Parse game detail info, set it to game info
|
176
|
+
*/
|
177
|
+
parseGameDetailsResponse(): void;
|
178
|
+
connectGameToLiveLobby(): void;
|
179
|
+
disconnectGameFromLiveLobby(): void;
|
180
|
+
toggleConnect(): void;
|
181
|
+
toggleVisibilityConnect(): void;
|
182
|
+
/**
|
183
|
+
* Get game base info from game api(casino/games/{id})
|
184
|
+
* @private
|
185
|
+
*/
|
186
|
+
loadGameById(): void;
|
187
|
+
private loadGameInfoByLobbyEndpoint;
|
188
|
+
private loadGameDetailInfo;
|
189
|
+
/**
|
190
|
+
* Toggle game favorite property
|
191
|
+
* @param gameId
|
192
|
+
* @private
|
193
|
+
*/
|
194
|
+
private toggleFavoriteGame;
|
195
|
+
/**
|
196
|
+
* Generate gameInfo obj by props
|
197
|
+
* @private
|
198
|
+
*/
|
199
|
+
private generateGameInfoByProps;
|
200
|
+
triggerExtraInfoLoad(): void;
|
201
|
+
componentDidRender(): void;
|
202
|
+
componentDidLoad(): void;
|
203
|
+
componentWillLoad(): void;
|
204
|
+
disconnectedCallback(): void;
|
205
|
+
setClientStyling: () => void;
|
206
|
+
setClientStylingURL: () => void;
|
207
|
+
getWidgetTypeByGameCategory(gameCategory: string): any;
|
208
|
+
getGameCategoryType: () => string;
|
209
|
+
getGameContainerClass: () => string;
|
210
|
+
getGameOverlayProps(): {
|
211
|
+
gameName: string;
|
212
|
+
gameId: string | number;
|
213
|
+
gameVendor: string;
|
214
|
+
hasFunMode: boolean;
|
215
|
+
language: string;
|
216
|
+
integratedGameframeMobile: boolean;
|
217
|
+
integratedGameframeDesktop: boolean;
|
218
|
+
gamepageModalurl: string;
|
219
|
+
};
|
220
|
+
render(): any;
|
221
221
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { CasinoGameThumbView } from './casino-game-thumb-view';
|
package/dist/types/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.d.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
import { BetLimit } from '../../models/casino-game-thumb-view';
|
2
2
|
export declare class CasinoGameThumbnailBetlimit {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
3
|
+
/**
|
4
|
+
* The betlimit of live game
|
5
|
+
*/
|
6
|
+
betLimit: BetLimit;
|
7
|
+
/**
|
8
|
+
* Number of players
|
9
|
+
*/
|
10
|
+
numberOfPlayers: number;
|
11
|
+
private currency;
|
12
|
+
private defaultCurrency;
|
13
|
+
private isBetLimitAvailable;
|
14
|
+
private getCurrencySymbols;
|
15
|
+
componentWillRender(): void;
|
16
|
+
render(): any;
|
17
17
|
}
|
package/dist/types/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.d.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import { BetLimit, CasinoGameThumbnailDetails, CasinoGameThumbnailInfo } from '../../models/casino-game-thumb-view';
|
2
2
|
export declare class CasinoGameThumbnailExtrainfo {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
language: string;
|
4
|
+
betLimit: BetLimit;
|
5
|
+
gameInfo: CasinoGameThumbnailInfo;
|
6
|
+
gameDetails: CasinoGameThumbnailDetails;
|
7
|
+
gameStartTime: string;
|
8
|
+
gameTimeFormat: string;
|
9
|
+
isNewGame: boolean;
|
10
|
+
isDouble: boolean;
|
11
|
+
gameTag: string;
|
12
|
+
onGameLoaded(gameInfo: CasinoGameThumbnailInfo): Promise<void>;
|
13
|
+
initTimeProperties(): void;
|
14
|
+
onGameDetailUpdated(details: CasinoGameThumbnailDetails): Promise<void>;
|
15
|
+
render(): any;
|
16
16
|
}
|
package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
2
2
|
export declare class CasinoGameThumbnailOverlay {
|
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
|
-
|
3
|
+
/**
|
4
|
+
* Event when playnow button clicked
|
5
|
+
*/
|
6
|
+
playClicked: EventEmitter<string | number>;
|
7
|
+
/**
|
8
|
+
* Widget Setting, the frame url when integratedGameframeDesktop is true
|
9
|
+
*/
|
10
|
+
gamepageModalurl: string;
|
11
|
+
/**
|
12
|
+
* Widget Setting, show game in a frame when user clicked 'start', default: false
|
13
|
+
*/
|
14
|
+
integratedGameframeMobile: boolean;
|
15
|
+
/**
|
16
|
+
* Widget Setting, show game in a frame when user clicked 'start', default: false
|
17
|
+
* Open game in a frame, gamepageModalurl value should be set
|
18
|
+
*/
|
19
|
+
integratedGameframeDesktop: boolean;
|
20
|
+
/**
|
21
|
+
* Language
|
22
|
+
*/
|
23
|
+
language: string;
|
24
|
+
gameName: string;
|
25
|
+
gameVendor: string;
|
26
|
+
gameId: string | number;
|
27
|
+
hasFunMode: boolean;
|
28
|
+
private userAgent;
|
29
|
+
private onPlayNowClicked;
|
30
|
+
render(): any;
|
31
31
|
}
|
package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CasinoGameThumbnailInfo } from '../../models/casino-game-thumb-view';
|
2
2
|
export declare class CasinoNormalGameThumbnail {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
infoWrapperRef: any;
|
4
|
+
language: string;
|
5
|
+
onGameLoaded(gameInfo: CasinoGameThumbnailInfo): Promise<void>;
|
6
|
+
render(): any;
|
7
7
|
}
|
@@ -6,6 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
8
8
|
import { BaccaratUpdateItem, BetLimit, CasinoGameThumbnailDetails, CasinoGameThumbnailInfo } from "./models/casino-game-thumb-view";
|
9
|
+
export { BaccaratUpdateItem, BetLimit, CasinoGameThumbnailDetails, CasinoGameThumbnailInfo } from "./models/casino-game-thumb-view";
|
9
10
|
export namespace Components {
|
10
11
|
interface CasinoExtrainfoBaccarat {
|
11
12
|
/**
|
@@ -204,6 +205,14 @@ export namespace Components {
|
|
204
205
|
"onGameLoaded": (gameInfo: CasinoGameThumbnailInfo) => Promise<void>;
|
205
206
|
}
|
206
207
|
}
|
208
|
+
export interface CasinoGameThumbViewCustomEvent<T> extends CustomEvent<T> {
|
209
|
+
detail: T;
|
210
|
+
target: HTMLCasinoGameThumbViewElement;
|
211
|
+
}
|
212
|
+
export interface CasinoGameThumbnailOverlayCustomEvent<T> extends CustomEvent<T> {
|
213
|
+
detail: T;
|
214
|
+
target: HTMLCasinoGameThumbnailOverlayElement;
|
215
|
+
}
|
207
216
|
declare global {
|
208
217
|
interface HTMLCasinoExtrainfoBaccaratElement extends Components.CasinoExtrainfoBaccarat, HTMLStencilElement {
|
209
218
|
}
|
@@ -223,7 +232,18 @@ declare global {
|
|
223
232
|
prototype: HTMLCasinoExtrainfoRouletteElement;
|
224
233
|
new (): HTMLCasinoExtrainfoRouletteElement;
|
225
234
|
};
|
235
|
+
interface HTMLCasinoGameThumbViewElementEventMap {
|
236
|
+
"toggleCasinoGameFavorite": number | string;
|
237
|
+
}
|
226
238
|
interface HTMLCasinoGameThumbViewElement extends Components.CasinoGameThumbView, HTMLStencilElement {
|
239
|
+
addEventListener<K extends keyof HTMLCasinoGameThumbViewElementEventMap>(type: K, listener: (this: HTMLCasinoGameThumbViewElement, ev: CasinoGameThumbViewCustomEvent<HTMLCasinoGameThumbViewElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
240
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
241
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
242
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
243
|
+
removeEventListener<K extends keyof HTMLCasinoGameThumbViewElementEventMap>(type: K, listener: (this: HTMLCasinoGameThumbViewElement, ev: CasinoGameThumbViewCustomEvent<HTMLCasinoGameThumbViewElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
244
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
245
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
246
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
227
247
|
}
|
228
248
|
var HTMLCasinoGameThumbViewElement: {
|
229
249
|
prototype: HTMLCasinoGameThumbViewElement;
|
@@ -241,7 +261,18 @@ declare global {
|
|
241
261
|
prototype: HTMLCasinoGameThumbnailExtrainfoElement;
|
242
262
|
new (): HTMLCasinoGameThumbnailExtrainfoElement;
|
243
263
|
};
|
264
|
+
interface HTMLCasinoGameThumbnailOverlayElementEventMap {
|
265
|
+
"playCasinoGame": string | number;
|
266
|
+
}
|
244
267
|
interface HTMLCasinoGameThumbnailOverlayElement extends Components.CasinoGameThumbnailOverlay, HTMLStencilElement {
|
268
|
+
addEventListener<K extends keyof HTMLCasinoGameThumbnailOverlayElementEventMap>(type: K, listener: (this: HTMLCasinoGameThumbnailOverlayElement, ev: CasinoGameThumbnailOverlayCustomEvent<HTMLCasinoGameThumbnailOverlayElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
269
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
270
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
271
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
272
|
+
removeEventListener<K extends keyof HTMLCasinoGameThumbnailOverlayElementEventMap>(type: K, listener: (this: HTMLCasinoGameThumbnailOverlayElement, ev: CasinoGameThumbnailOverlayCustomEvent<HTMLCasinoGameThumbnailOverlayElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
273
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
274
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
275
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
245
276
|
}
|
246
277
|
var HTMLCasinoGameThumbnailOverlayElement: {
|
247
278
|
prototype: HTMLCasinoGameThumbnailOverlayElement;
|
@@ -368,7 +399,7 @@ declare namespace LocalJSX {
|
|
368
399
|
* Widget Setting, Load game details when set it as true, default value: false When loadDetails is true and type=='live-casino-tables', Load gameDetails by endpoint/vendor/gameId if livelobbyEndpoint is null
|
369
400
|
*/
|
370
401
|
"loadDetails"?: boolean;
|
371
|
-
"onToggleCasinoGameFavorite"?: (event:
|
402
|
+
"onToggleCasinoGameFavorite"?: (event: CasinoGameThumbViewCustomEvent<number | string>) => void;
|
372
403
|
/**
|
373
404
|
* Game Property, Game lunch platform
|
374
405
|
*/
|
@@ -447,7 +478,7 @@ declare namespace LocalJSX {
|
|
447
478
|
/**
|
448
479
|
* Event when playnow button clicked
|
449
480
|
*/
|
450
|
-
"onPlayCasinoGame"?: (event:
|
481
|
+
"onPlayCasinoGame"?: (event: CasinoGameThumbnailOverlayCustomEvent<string | number>) => void;
|
451
482
|
}
|
452
483
|
interface CasinoNormalGameThumbnail {
|
453
484
|
"language"?: string;
|