@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
@@ -1,18 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"entries": [
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
3
|
+
"components/casino-game-thumb-view/casino-game-thumb-view.js",
|
4
|
+
"components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js",
|
5
|
+
"components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js",
|
6
|
+
"components/casino-extrainfo-roulette/casino-extrainfo-roulette.js",
|
7
|
+
"components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js",
|
8
|
+
"components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js",
|
9
|
+
"components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js",
|
10
|
+
"components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js"
|
11
11
|
],
|
12
12
|
"compiler": {
|
13
13
|
"name": "@stencil/core",
|
14
|
-
"version": "
|
15
|
-
"typescriptVersion": "
|
14
|
+
"version": "4.20.0",
|
15
|
+
"typescriptVersion": "5.5.3"
|
16
16
|
},
|
17
17
|
"collections": [],
|
18
18
|
"bundles": []
|
@@ -1,240 +1,261 @@
|
|
1
|
-
import {
|
2
|
-
import { BaccaratWinner, } from
|
3
|
-
import { BaccaratSvg } from
|
4
|
-
import { WINNER_COLOR } from
|
1
|
+
import { h, Host } from "@stencil/core";
|
2
|
+
import { BaccaratWinner, } from "../../models/casino-game-thumb-view";
|
3
|
+
import { BaccaratSvg } from "../../utils/baccarat-board-svg";
|
4
|
+
import { WINNER_COLOR } from "../../constants/game-thumbnail";
|
5
5
|
export class CasinoExtrainfoBaccarat {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
constructor() {
|
7
|
+
this.baccaratSvg = new BaccaratSvg();
|
8
|
+
this.isBoardInited = false;
|
9
|
+
this.filledCells = [];
|
10
|
+
this.language = undefined;
|
11
|
+
this.showRoundBoard = undefined;
|
12
|
+
this.gameInfo = undefined;
|
13
|
+
this.gameDetails = undefined;
|
14
|
+
}
|
15
|
+
gameDetailsHandler(newVal, oldVal) {
|
16
|
+
if (newVal.isOpen && (!oldVal || !oldVal.isOpen)) {
|
17
|
+
if (this.showRoundBoard) {
|
18
|
+
setTimeout(() => {
|
19
|
+
this.initBaccaratRoundsBoard();
|
20
|
+
}, 100);
|
21
|
+
}
|
22
|
+
}
|
18
23
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
(_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(this.gameInfo);
|
25
|
-
}
|
26
|
-
/**
|
27
|
-
* Called when received update from updater
|
28
|
-
* @param details
|
29
|
-
*/
|
30
|
-
async onGameDetailUpdated(details) {
|
31
|
-
var _a;
|
32
|
-
this.gameInfo.details = this.gameDetails = details;
|
33
|
-
this.gameDetails = Object.assign({}, this.gameDetails);
|
34
|
-
(_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameDetailUpdated(details);
|
35
|
-
// init board when the svg board init finished
|
36
|
-
setTimeout(() => {
|
37
|
-
this.isBoardInited = true;
|
38
|
-
}, 200);
|
39
|
-
}
|
40
|
-
async onBaccaratResultChanged(result) {
|
41
|
-
if (!result || !this.baccaratRef || this.isResetingRoundBoard) {
|
42
|
-
return;
|
24
|
+
async onGameLoaded(gameInfo) {
|
25
|
+
var _a;
|
26
|
+
this.gameInfo = gameInfo;
|
27
|
+
this.gameDetails = this.gameInfo.details;
|
28
|
+
(_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(this.gameInfo);
|
43
29
|
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
(result[0].location.column == 0 && result[0].location.row == 0))))) {
|
58
|
-
this.isResetingRoundBoard = true;
|
59
|
-
resetRoundBoardCells();
|
60
|
-
setTimeout(() => {
|
61
|
-
this.isResetingRoundBoard = false;
|
62
|
-
}, 1000);
|
30
|
+
/**
|
31
|
+
* Called when received update from updater
|
32
|
+
* @param details
|
33
|
+
*/
|
34
|
+
async onGameDetailUpdated(details) {
|
35
|
+
var _a;
|
36
|
+
this.gameInfo.details = this.gameDetails = details;
|
37
|
+
this.gameDetails = Object.assign({}, this.gameDetails);
|
38
|
+
(_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameDetailUpdated(details);
|
39
|
+
// init board when the svg board init finished
|
40
|
+
setTimeout(() => {
|
41
|
+
this.isBoardInited = true;
|
42
|
+
}, 200);
|
63
43
|
}
|
64
|
-
result
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
44
|
+
async onBaccaratResultChanged(result) {
|
45
|
+
if (!result || !this.baccaratRef || this.isResetingRoundBoard) {
|
46
|
+
return;
|
47
|
+
}
|
48
|
+
// For Tie round to mark, latestRound
|
49
|
+
let latestRound, resetRoundBoardCells = () => {
|
50
|
+
console.log('Reset Baccarat Board.');
|
51
|
+
this.filledCells = [];
|
52
|
+
this.baccaratSvg.resetSvg();
|
53
|
+
latestRound = null;
|
54
|
+
};
|
55
|
+
// Reset round board to avoid the reset(result==[]) update come earlier than last round,
|
56
|
+
// Ignore if the result.length == 0 for temporary
|
57
|
+
if (this.isBoardInited &&
|
58
|
+
(result.length == 0 ||
|
59
|
+
(result.length == 1 &&
|
60
|
+
(result[0].winner == BaccaratWinner.TIE ||
|
61
|
+
(result[0].location.column == 0 && result[0].location.row == 0))))) {
|
62
|
+
this.isResetingRoundBoard = true;
|
63
|
+
resetRoundBoardCells();
|
64
|
+
setTimeout(() => {
|
65
|
+
this.isResetingRoundBoard = false;
|
66
|
+
}, 1000);
|
77
67
|
}
|
68
|
+
result.forEach((item, i) => {
|
69
|
+
//Mark the Tie when Tie round is the first cell(0,0)
|
70
|
+
if (item.winner == BaccaratWinner.TIE) {
|
71
|
+
if (i == result.length - 1 &&
|
72
|
+
(!latestRound ||
|
73
|
+
(latestRound &&
|
74
|
+
latestRound.location.column == 0 &&
|
75
|
+
latestRound.location.row == 0))) {
|
76
|
+
let firstTieCellKey = '0-0-T';
|
77
|
+
if (this.filledCells.indexOf(firstTieCellKey) == -1) {
|
78
|
+
this.baccaratSvg.markNewRound(0, 0, Object.assign(Object.assign({}, item), { pairColor: WINNER_COLOR }), this.isBoardInited);
|
79
|
+
this.filledCells.push(firstTieCellKey);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
//cellKey to mark if a round has been marked
|
85
|
+
const cellKey = `${item.location.column}-${item.location.row}`;
|
86
|
+
const tCellKey = `${cellKey}-T`;
|
87
|
+
if (item.ties > 0 && this.filledCells.indexOf(tCellKey) == -1) {
|
88
|
+
this.baccaratSvg.markNewRound(item.location.column, item.location.row, Object.assign(Object.assign({}, item), { winner: BaccaratWinner.TIE }), this.isBoardInited);
|
89
|
+
this.filledCells.push(tCellKey);
|
90
|
+
}
|
91
|
+
latestRound = item;
|
92
|
+
//If current cell has been filled,duplicated data
|
93
|
+
if (this.filledCells.indexOf(cellKey) == -1) {
|
94
|
+
this.baccaratSvg.markNewRound(item.location.column, item.location.row, Object.assign(Object.assign({}, item), { pairColor: WINNER_COLOR }), this.isBoardInited);
|
95
|
+
this.filledCells.push(cellKey);
|
96
|
+
}
|
97
|
+
});
|
78
98
|
return;
|
79
|
-
}
|
80
|
-
//cellKey to mark if a round has been marked
|
81
|
-
const cellKey = `${item.location.column}-${item.location.row}`;
|
82
|
-
const tCellKey = `${cellKey}-T`;
|
83
|
-
if (item.ties > 0 && this.filledCells.indexOf(tCellKey) == -1) {
|
84
|
-
this.baccaratSvg.markNewRound(item.location.column, item.location.row, Object.assign(Object.assign({}, item), { winner: BaccaratWinner.TIE }), this.isBoardInited);
|
85
|
-
this.filledCells.push(tCellKey);
|
86
|
-
}
|
87
|
-
latestRound = item;
|
88
|
-
//If current cell has been filled,duplicated data
|
89
|
-
if (this.filledCells.indexOf(cellKey) == -1) {
|
90
|
-
this.baccaratSvg.markNewRound(item.location.column, item.location.row, Object.assign(Object.assign({}, item), { pairColor: WINNER_COLOR }), this.isBoardInited);
|
91
|
-
this.filledCells.push(cellKey);
|
92
|
-
}
|
93
|
-
});
|
94
|
-
return;
|
95
|
-
}
|
96
|
-
initBaccaratRoundsBoard() {
|
97
|
-
var _a;
|
98
|
-
this.baccaratSvg.createBaccaratBoard(this.baccaratRef);
|
99
|
-
if (((_a = this.gameDetails.results) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
100
|
-
this.onBaccaratResultChanged(this.gameDetails.results);
|
101
99
|
}
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
100
|
+
initBaccaratRoundsBoard() {
|
101
|
+
var _a;
|
102
|
+
this.baccaratSvg.createBaccaratBoard(this.baccaratRef);
|
103
|
+
if (((_a = this.gameDetails.results) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
104
|
+
this.onBaccaratResultChanged(this.gameDetails.results);
|
105
|
+
}
|
106
|
+
}
|
107
|
+
render() {
|
108
|
+
var _a;
|
109
|
+
return (h(Host, { key: '88be397ce6762f3a57c76c84b40f48dc2ba23db7' }, h("casino-game-thumbnail-extrainfo", { key: '177c57f40ef84d7dfa0f458336e558e195aa9ac6', ref: (el) => (this.infoWrapperRef = el), language: this.language }, ((_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.isOpen) && this.showRoundBoard && (h("div", { key: '7b2db6ad68e6d9bcac9b97785b2c05b05d146836', slot: "category-details", class: "LiveIcons", part: "LiveIcons" }, h("div", { key: '004301f9c4f9bb574757e4eace077bd9fac57472', id: "boardContainer", part: "BaccaratBoard", class: "BaccaratBoard", ref: (el) => (this.baccaratRef = el) }))))));
|
110
|
+
}
|
111
|
+
static get is() { return "casino-extrainfo-baccarat"; }
|
112
|
+
static get originalStyleUrls() {
|
113
|
+
return {
|
114
|
+
"$": ["casino-extrainfo-baccarat.scss"]
|
115
|
+
};
|
116
|
+
}
|
117
|
+
static get styleUrls() {
|
118
|
+
return {
|
119
|
+
"$": ["casino-extrainfo-baccarat.css"]
|
120
|
+
};
|
121
|
+
}
|
122
|
+
static get properties() {
|
123
|
+
return {
|
124
|
+
"language": {
|
125
|
+
"type": "string",
|
126
|
+
"mutable": false,
|
127
|
+
"complexType": {
|
128
|
+
"original": "string",
|
129
|
+
"resolved": "string",
|
130
|
+
"references": {}
|
131
|
+
},
|
132
|
+
"required": false,
|
133
|
+
"optional": false,
|
134
|
+
"docs": {
|
135
|
+
"tags": [],
|
136
|
+
"text": "Text language to show"
|
137
|
+
},
|
138
|
+
"attribute": "language",
|
139
|
+
"reflect": false
|
140
|
+
},
|
141
|
+
"showRoundBoard": {
|
142
|
+
"type": "boolean",
|
143
|
+
"mutable": false,
|
144
|
+
"complexType": {
|
145
|
+
"original": "boolean",
|
146
|
+
"resolved": "boolean",
|
147
|
+
"references": {}
|
148
|
+
},
|
149
|
+
"required": false,
|
150
|
+
"optional": false,
|
151
|
+
"docs": {
|
152
|
+
"tags": [],
|
153
|
+
"text": "Text language to show"
|
154
|
+
},
|
155
|
+
"attribute": "show-round-board",
|
156
|
+
"reflect": false
|
157
|
+
}
|
158
|
+
};
|
159
|
+
}
|
160
|
+
static get states() {
|
161
|
+
return {
|
162
|
+
"gameInfo": {},
|
163
|
+
"gameDetails": {}
|
164
|
+
};
|
165
|
+
}
|
166
|
+
static get methods() {
|
167
|
+
return {
|
168
|
+
"onGameLoaded": {
|
169
|
+
"complexType": {
|
170
|
+
"signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
|
171
|
+
"parameters": [{
|
172
|
+
"name": "gameInfo",
|
173
|
+
"type": "CasinoGameThumbnailInfo",
|
174
|
+
"docs": ""
|
175
|
+
}],
|
176
|
+
"references": {
|
177
|
+
"Promise": {
|
178
|
+
"location": "global",
|
179
|
+
"id": "global::Promise"
|
180
|
+
},
|
181
|
+
"CasinoGameThumbnailInfo": {
|
182
|
+
"location": "import",
|
183
|
+
"path": "../../models/casino-game-thumb-view",
|
184
|
+
"id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailInfo"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
"return": "Promise<void>"
|
188
|
+
},
|
189
|
+
"docs": {
|
190
|
+
"text": "",
|
191
|
+
"tags": []
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"onGameDetailUpdated": {
|
195
|
+
"complexType": {
|
196
|
+
"signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
|
197
|
+
"parameters": [{
|
198
|
+
"name": "details",
|
199
|
+
"type": "CasinoGameThumbnailDetails",
|
200
|
+
"docs": ""
|
201
|
+
}],
|
202
|
+
"references": {
|
203
|
+
"Promise": {
|
204
|
+
"location": "global",
|
205
|
+
"id": "global::Promise"
|
206
|
+
},
|
207
|
+
"CasinoGameThumbnailDetails": {
|
208
|
+
"location": "import",
|
209
|
+
"path": "../../models/casino-game-thumb-view",
|
210
|
+
"id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailDetails"
|
211
|
+
}
|
212
|
+
},
|
213
|
+
"return": "Promise<void>"
|
214
|
+
},
|
215
|
+
"docs": {
|
216
|
+
"text": "Called when received update from updater",
|
217
|
+
"tags": [{
|
218
|
+
"name": "param",
|
219
|
+
"text": "details"
|
220
|
+
}]
|
221
|
+
}
|
222
|
+
},
|
223
|
+
"onBaccaratResultChanged": {
|
224
|
+
"complexType": {
|
225
|
+
"signature": "(result: Array<BaccaratUpdateItem>) => Promise<void>",
|
226
|
+
"parameters": [{
|
227
|
+
"name": "result",
|
228
|
+
"type": "BaccaratUpdateItem[]",
|
229
|
+
"docs": ""
|
230
|
+
}],
|
231
|
+
"references": {
|
232
|
+
"Promise": {
|
233
|
+
"location": "global",
|
234
|
+
"id": "global::Promise"
|
235
|
+
},
|
236
|
+
"Array": {
|
237
|
+
"location": "global",
|
238
|
+
"id": "global::Array"
|
239
|
+
},
|
240
|
+
"BaccaratUpdateItem": {
|
241
|
+
"location": "import",
|
242
|
+
"path": "../../models/casino-game-thumb-view",
|
243
|
+
"id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::BaccaratUpdateItem"
|
244
|
+
}
|
245
|
+
},
|
246
|
+
"return": "Promise<void>"
|
247
|
+
},
|
248
|
+
"docs": {
|
249
|
+
"text": "",
|
250
|
+
"tags": []
|
251
|
+
}
|
252
|
+
}
|
253
|
+
};
|
150
254
|
}
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
static get methods() { return {
|
157
|
-
"onGameLoaded": {
|
158
|
-
"complexType": {
|
159
|
-
"signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
|
160
|
-
"parameters": [{
|
161
|
-
"tags": [],
|
162
|
-
"text": ""
|
163
|
-
}],
|
164
|
-
"references": {
|
165
|
-
"Promise": {
|
166
|
-
"location": "global"
|
167
|
-
},
|
168
|
-
"CasinoGameThumbnailInfo": {
|
169
|
-
"location": "import",
|
170
|
-
"path": "../../models/casino-game-thumb-view"
|
171
|
-
}
|
172
|
-
},
|
173
|
-
"return": "Promise<void>"
|
174
|
-
},
|
175
|
-
"docs": {
|
176
|
-
"text": "",
|
177
|
-
"tags": []
|
178
|
-
}
|
179
|
-
},
|
180
|
-
"onGameDetailUpdated": {
|
181
|
-
"complexType": {
|
182
|
-
"signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
|
183
|
-
"parameters": [{
|
184
|
-
"tags": [{
|
185
|
-
"name": "param",
|
186
|
-
"text": "details"
|
187
|
-
}],
|
188
|
-
"text": ""
|
189
|
-
}],
|
190
|
-
"references": {
|
191
|
-
"Promise": {
|
192
|
-
"location": "global"
|
193
|
-
},
|
194
|
-
"CasinoGameThumbnailDetails": {
|
195
|
-
"location": "import",
|
196
|
-
"path": "../../models/casino-game-thumb-view"
|
197
|
-
}
|
198
|
-
},
|
199
|
-
"return": "Promise<void>"
|
200
|
-
},
|
201
|
-
"docs": {
|
202
|
-
"text": "Called when received update from updater",
|
203
|
-
"tags": [{
|
204
|
-
"name": "param",
|
205
|
-
"text": "details"
|
206
|
-
}]
|
207
|
-
}
|
208
|
-
},
|
209
|
-
"onBaccaratResultChanged": {
|
210
|
-
"complexType": {
|
211
|
-
"signature": "(result: Array<BaccaratUpdateItem>) => Promise<void>",
|
212
|
-
"parameters": [{
|
213
|
-
"tags": [],
|
214
|
-
"text": ""
|
215
|
-
}],
|
216
|
-
"references": {
|
217
|
-
"Promise": {
|
218
|
-
"location": "global"
|
219
|
-
},
|
220
|
-
"Array": {
|
221
|
-
"location": "global"
|
222
|
-
},
|
223
|
-
"BaccaratUpdateItem": {
|
224
|
-
"location": "import",
|
225
|
-
"path": "../../models/casino-game-thumb-view"
|
226
|
-
}
|
227
|
-
},
|
228
|
-
"return": "Promise<void>"
|
229
|
-
},
|
230
|
-
"docs": {
|
231
|
-
"text": "",
|
232
|
-
"tags": []
|
233
|
-
}
|
255
|
+
static get watchers() {
|
256
|
+
return [{
|
257
|
+
"propName": "gameDetails",
|
258
|
+
"methodName": "gameDetailsHandler"
|
259
|
+
}];
|
234
260
|
}
|
235
|
-
}; }
|
236
|
-
static get watchers() { return [{
|
237
|
-
"propName": "gameDetails",
|
238
|
-
"methodName": "gameDetailsHandler"
|
239
|
-
}]; }
|
240
261
|
}
|