@everymatrix/casino-games-category-section 0.0.264 → 0.0.268
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-games-category-section",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.268",
|
|
4
4
|
"main": "dist/casino-games-category-section.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c5b78b8fcf6dd4293a5b296177205963840e7289"
|
|
40
40
|
}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
export let categoryindex:number = 0;
|
|
26
26
|
export let categorygames:number = 0;
|
|
27
27
|
export let livecasino:string = 'false';
|
|
28
|
+
export let visiblegames:string = '';
|
|
28
29
|
|
|
29
30
|
export let once = true;
|
|
30
31
|
export let top = 0;
|
|
@@ -277,7 +278,6 @@
|
|
|
277
278
|
searchItem = false;
|
|
278
279
|
mostPlayedScreen = false;
|
|
279
280
|
validObservers = false;
|
|
280
|
-
|
|
281
281
|
if (e.data.receivedFavoriteResults) {
|
|
282
282
|
favoriteGames = e.data.receivedFavoriteResults.items;
|
|
283
283
|
}
|
|
@@ -314,6 +314,13 @@
|
|
|
314
314
|
});
|
|
315
315
|
shownCategoryData = categoryData.games.items;
|
|
316
316
|
showLoadCategory = false;
|
|
317
|
+
// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
318
|
+
if(shownCategoryData.length < 10) {
|
|
319
|
+
scrollTop = true;
|
|
320
|
+
setTimeout(() => {
|
|
321
|
+
window.postMessage({ type: 'WidgetTopReference', scrollTop }, window.location.href);
|
|
322
|
+
}, 500);
|
|
323
|
+
}
|
|
317
324
|
});
|
|
318
325
|
break;
|
|
319
326
|
|
|
@@ -325,6 +332,7 @@
|
|
|
325
332
|
shownCategoryData.forEach((item:any) => {
|
|
326
333
|
item.isFavorite = checkFavorite(item.id);
|
|
327
334
|
});
|
|
335
|
+
|
|
328
336
|
showLoadCategory = true;
|
|
329
337
|
break;
|
|
330
338
|
|
|
@@ -352,7 +360,6 @@
|
|
|
352
360
|
}
|
|
353
361
|
});
|
|
354
362
|
}
|
|
355
|
-
|
|
356
363
|
favoriteGamesData.items = platformFavorite(favGameArray, favoriteGamesData.items);
|
|
357
364
|
favoriteGamesData.name = "Favorites";
|
|
358
365
|
showFavGamesCategory = true;
|
|
@@ -625,8 +632,10 @@
|
|
|
625
632
|
gamefunmode={gameprops.gameModel.hasFunMode}
|
|
626
633
|
gamefavorite={gameprops.gameModel.isFavorite}
|
|
627
634
|
showfavoredcategory={showFavGamesCategory}
|
|
635
|
+
connectlive={intersectingIndexes[gameprops.id] == 1 ? 'connect' : 'disconnect'}
|
|
636
|
+
visibilityconnect={visibilityconnect}
|
|
628
637
|
{currency}
|
|
629
|
-
livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.
|
|
638
|
+
livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.launchUrl : ''}
|
|
630
639
|
{clientstyling}
|
|
631
640
|
{clientstylingurl}
|
|
632
641
|
{endpoint}
|
|
@@ -634,7 +643,6 @@
|
|
|
634
643
|
></casino-game-thumbnail>
|
|
635
644
|
{/if}
|
|
636
645
|
{:else if gameprops.gameModel.platform.includes("PC")}
|
|
637
|
-
<!-- <p style="color: var(--emfe-w-color-white, #FFFFFF)">{gameprops.gameModel.isFavorite}</p> -->
|
|
638
646
|
<casino-game-thumbnail
|
|
639
647
|
class="{MASONRY_CLASS_PREFIX}{gameprops.cellSize ? gameprops.cellSize : '1x1'}"
|
|
640
648
|
part="{MASONRY_CLASS_PREFIX}{gameprops.cellSize ? gameprops.cellSize : '1x1'}"
|
|
@@ -652,8 +660,10 @@
|
|
|
652
660
|
gamefunmode={gameprops.gameModel.hasFunMode}
|
|
653
661
|
gamefavorite={gameprops.gameModel.isFavorite}
|
|
654
662
|
showfavoredcategory={showFavGamesCategory}
|
|
663
|
+
connectlive={intersectingIndexes[gameprops.id] == 1 ? 'connect' : 'disconnect'}
|
|
664
|
+
visibilityconnect={visibilityconnect}
|
|
655
665
|
{currency}
|
|
656
|
-
livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.
|
|
666
|
+
livelobbyendpoint={gameprops.gameModel.details ? gameprops.gameModel.launchUrl : ''}
|
|
657
667
|
{clientstyling}
|
|
658
668
|
{clientstylingurl}
|
|
659
669
|
{endpoint}
|