@everymatrix/casino-game-thumb-view 1.43.4 → 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.
Files changed (131) hide show
  1. package/dist/casino-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
  2. package/dist/casino-game-thumb-view/p-2207062c.entry.js +1 -0
  3. package/dist/casino-game-thumb-view/p-39684b4a.entry.js +1 -0
  4. package/dist/casino-game-thumb-view/p-af0284b5.entry.js +1 -0
  5. package/dist/casino-game-thumb-view/p-b73b7a18.entry.js +1 -0
  6. package/dist/casino-game-thumb-view/p-bd016895.entry.js +7 -0
  7. package/dist/casino-game-thumb-view/p-d2580653.js +8 -0
  8. package/dist/casino-game-thumb-view/p-d48c3566.entry.js +1 -0
  9. package/dist/casino-game-thumb-view/p-e1255160.js +1 -0
  10. package/dist/casino-game-thumb-view/p-eef6f908.js +2 -0
  11. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  12. package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +327 -322
  13. package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +45 -45
  14. package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +35 -34
  15. package/dist/cjs/casino-game-thumb-view.cjs.js +17 -11
  16. package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +469 -519
  17. package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +258 -251
  18. package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +14 -12
  19. package/dist/cjs/game-thumbnail-5a34c727.js +78 -0
  20. package/dist/cjs/index-48d13981.js +1709 -0
  21. package/dist/cjs/loader.cjs.js +7 -13
  22. package/dist/cjs/locale.utils-53bf703a.js +132 -0
  23. package/dist/cjs/{utils-a0afc0a9.js → utils-c4ed3adc.js} +407 -404
  24. package/dist/collection/collection-manifest.json +10 -10
  25. package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +251 -230
  26. package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +136 -114
  27. package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +126 -119
  28. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.css +1 -1
  29. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +1023 -1027
  30. package/dist/collection/components/casino-game-thumb-view/index.js +1 -0
  31. package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +78 -80
  32. package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +153 -150
  33. package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +201 -206
  34. package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +71 -58
  35. package/dist/collection/constants/game-thumbnail.js +66 -66
  36. package/dist/collection/models/casino-game-thumb-view.js +6 -6
  37. package/dist/collection/models/currency-symbols.js +170 -170
  38. package/dist/collection/utils/baccarat-board-svg.js +225 -225
  39. package/dist/collection/utils/locale.utils.js +122 -122
  40. package/dist/collection/utils/utils.js +41 -41
  41. package/dist/esm/app-globals-0f993ce5.js +3 -0
  42. package/dist/esm/casino-extrainfo-baccarat.entry.js +327 -322
  43. package/dist/esm/casino-extrainfo-blackjack.entry.js +45 -45
  44. package/dist/esm/casino-extrainfo-roulette.entry.js +35 -34
  45. package/dist/esm/casino-game-thumb-view.js +14 -11
  46. package/dist/esm/casino-game-thumb-view_2.entry.js +469 -519
  47. package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +258 -251
  48. package/dist/esm/casino-normal-game-thumbnail.entry.js +14 -12
  49. package/dist/esm/game-thumbnail-035e97e2.js +72 -0
  50. package/dist/esm/index-8c9a8030.js +1681 -0
  51. package/dist/esm/loader.js +7 -13
  52. package/dist/esm/locale.utils-0c514ca8.js +130 -0
  53. package/dist/{components/utils.js → esm/utils-090ac2e9.js} +407 -404
  54. package/dist/stencil.config.dev.js +17 -0
  55. package/dist/stencil.config.js +12 -35
  56. 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
  57. 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
  58. package/dist/types/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.d.ts +36 -36
  59. package/dist/types/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.d.ts +33 -33
  60. package/dist/types/components/casino-extrainfo-roulette/casino-extrainfo-roulette.d.ts +18 -18
  61. package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +213 -213
  62. package/dist/types/components/casino-game-thumb-view/index.d.ts +1 -0
  63. package/dist/types/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.d.ts +14 -14
  64. package/dist/types/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.d.ts +13 -13
  65. package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts +28 -28
  66. package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts +4 -4
  67. package/dist/types/components.d.ts +33 -2
  68. package/dist/types/constants/game-thumbnail.d.ts +66 -66
  69. package/dist/types/models/casino-game-thumb-view.d.ts +107 -107
  70. package/dist/types/models/currency-symbols.d.ts +170 -170
  71. package/dist/types/stencil-public-runtime.d.ts +142 -33
  72. package/dist/types/utils/baccarat-board-svg.d.ts +29 -29
  73. package/loader/cdn.js +1 -3
  74. package/loader/index.cjs.js +1 -3
  75. package/loader/index.d.ts +13 -1
  76. package/loader/index.es2017.js +1 -3
  77. package/loader/index.js +1 -3
  78. package/loader/package.json +1 -0
  79. package/package.json +8 -8
  80. package/dist/assets/baccarat.svg +0 -43
  81. package/dist/assets/fav.svg +0 -9
  82. package/dist/assets/favorite.svg +0 -12
  83. package/dist/assets/seat.svg +0 -6
  84. package/dist/assets/unfav.svg +0 -20
  85. package/dist/casino-game-thumb-view/p-1bbf4b70.entry.js +0 -1
  86. package/dist/casino-game-thumb-view/p-42bf2034.entry.js +0 -1
  87. package/dist/casino-game-thumb-view/p-46dbb1cb.js +0 -1
  88. package/dist/casino-game-thumb-view/p-6a6b2a78.js +0 -8
  89. package/dist/casino-game-thumb-view/p-7ae107ed.entry.js +0 -1
  90. package/dist/casino-game-thumb-view/p-9cbfffbc.entry.js +0 -1
  91. package/dist/casino-game-thumb-view/p-d961aec4.entry.js +0 -1
  92. package/dist/casino-game-thumb-view/p-db43bb56.entry.js +0 -7
  93. package/dist/cjs/game-thumbnail-31d518f0.js +0 -78
  94. package/dist/cjs/index-65a1d768.js +0 -1796
  95. package/dist/cjs/locale.utils-aa160787.js +0 -132
  96. package/dist/components/casino-extrainfo-baccarat.d.ts +0 -11
  97. package/dist/components/casino-extrainfo-baccarat.js +0 -400
  98. package/dist/components/casino-extrainfo-blackjack.d.ts +0 -11
  99. package/dist/components/casino-extrainfo-blackjack.js +0 -92
  100. package/dist/components/casino-extrainfo-roulette.d.ts +0 -11
  101. package/dist/components/casino-extrainfo-roulette.js +0 -78
  102. package/dist/components/casino-game-thumb-view.d.ts +0 -11
  103. package/dist/components/casino-game-thumb-view.js +0 -1625
  104. package/dist/components/casino-game-thumbnail-betlimit.d.ts +0 -11
  105. package/dist/components/casino-game-thumbnail-betlimit.js +0 -6
  106. package/dist/components/casino-game-thumbnail-betlimit2.js +0 -227
  107. package/dist/components/casino-game-thumbnail-extrainfo.d.ts +0 -11
  108. package/dist/components/casino-game-thumbnail-extrainfo.js +0 -6
  109. package/dist/components/casino-game-thumbnail-extrainfo2.js +0 -96
  110. package/dist/components/casino-game-thumbnail-overlay.d.ts +0 -11
  111. package/dist/components/casino-game-thumbnail-overlay.js +0 -6
  112. package/dist/components/casino-game-thumbnail-overlay2.js +0 -69
  113. package/dist/components/casino-normal-game-thumbnail.d.ts +0 -11
  114. package/dist/components/casino-normal-game-thumbnail.js +0 -52
  115. package/dist/components/game-thumbnail.js +0 -72
  116. package/dist/components/index.d.ts +0 -26
  117. package/dist/components/index.js +0 -1
  118. package/dist/components/locale.utils.js +0 -130
  119. package/dist/esm/game-thumbnail-0a56ee03.js +0 -72
  120. package/dist/esm/index-1e44dd9f.js +0 -1769
  121. package/dist/esm/locale.utils-e0cf897e.js +0 -130
  122. package/dist/esm/polyfills/core-js.js +0 -11
  123. package/dist/esm/polyfills/css-shim.js +0 -1
  124. package/dist/esm/polyfills/dom.js +0 -79
  125. package/dist/esm/polyfills/es5-html-element.js +0 -1
  126. package/dist/esm/polyfills/index.js +0 -34
  127. package/dist/esm/polyfills/system.js +0 -6
  128. package/dist/esm/utils-e9314132.js +0 -5739
  129. 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
  130. /package/dist/casino-game-thumb-view/{p-2d5f59fe.js → p-2d02adb1.js} +0 -0
  131. /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
- * Widget Setting, Game language
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
- integratedGameframeDesktop: boolean;
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
- render(): any;
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';
@@ -1,17 +1,17 @@
1
1
  import { BetLimit } from '../../models/casino-game-thumb-view';
2
2
  export declare class CasinoGameThumbnailBetlimit {
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;
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
  }
@@ -1,16 +1,16 @@
1
1
  import { BetLimit, CasinoGameThumbnailDetails, CasinoGameThumbnailInfo } from '../../models/casino-game-thumb-view';
2
2
  export declare class CasinoGameThumbnailExtrainfo {
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;
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
  }
@@ -1,31 +1,31 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class CasinoGameThumbnailOverlay {
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;
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
  }
@@ -1,7 +1,7 @@
1
1
  import { CasinoGameThumbnailInfo } from '../../models/casino-game-thumb-view';
2
2
  export declare class CasinoNormalGameThumbnail {
3
- infoWrapperRef: any;
4
- language: string;
5
- onGameLoaded(gameInfo: CasinoGameThumbnailInfo): Promise<void>;
6
- render(): any;
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: CustomEvent<number | string>) => void;
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: CustomEvent<string | number>) => void;
481
+ "onPlayCasinoGame"?: (event: CasinoGameThumbnailOverlayCustomEvent<string | number>) => void;
451
482
  }
452
483
  interface CasinoNormalGameThumbnail {
453
484
  "language"?: string;