valtech-components 4.0.561 → 4.0.562
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/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +31 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +31 -1
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/phone-display/phone-display.component.d.ts +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +1 -1
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +4 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
package/esm2022/lib/version.mjs
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Current version of valtech-components.
|
|
3
3
|
* This is automatically updated during the publish process.
|
|
4
4
|
*/
|
|
5
|
-
export const VERSION = '4.0.
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
export const VERSION = '4.0.562';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC41NjInO1xuIl19
|
|
@@ -59,7 +59,7 @@ import fixWebmDuration from 'fix-webm-duration';
|
|
|
59
59
|
* Current version of valtech-components.
|
|
60
60
|
* This is automatically updated during the publish process.
|
|
61
61
|
*/
|
|
62
|
-
const VERSION = '4.0.
|
|
62
|
+
const VERSION = '4.0.562';
|
|
63
63
|
|
|
64
64
|
// Control de estado de refresco (singleton a nivel de módulo)
|
|
65
65
|
let isRefreshing = false;
|
|
@@ -72609,6 +72609,7 @@ class ChristianityGameComponent {
|
|
|
72609
72609
|
this.previewTilt = signal(CHRISTIANITY_PREVIEW_NEUTRAL_TILT);
|
|
72610
72610
|
this.selectedPreviewAbilityIndex = signal(0);
|
|
72611
72611
|
this.previewSlideDirection = signal(0);
|
|
72612
|
+
this.previewSwipeStart = null;
|
|
72612
72613
|
this.hoveredHandIndex = signal(null);
|
|
72613
72614
|
this.draggingCardId = signal(null);
|
|
72614
72615
|
this.draggingAttackerInstanceId = signal(null);
|
|
@@ -74108,6 +74109,35 @@ class ChristianityGameComponent {
|
|
|
74108
74109
|
this.closePreview();
|
|
74109
74110
|
}
|
|
74110
74111
|
}
|
|
74112
|
+
startPreviewSwipe(event) {
|
|
74113
|
+
if (!this.canNavigatePreview())
|
|
74114
|
+
return;
|
|
74115
|
+
if (event.pointerType === 'mouse' && event.button !== 0)
|
|
74116
|
+
return;
|
|
74117
|
+
this.previewSwipeStart = { pointerId: event.pointerId, startX: event.clientX, startY: event.clientY };
|
|
74118
|
+
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
74119
|
+
}
|
|
74120
|
+
finishPreviewSwipe(event) {
|
|
74121
|
+
const swipe = this.previewSwipeStart;
|
|
74122
|
+
if (!swipe || swipe.pointerId !== event.pointerId)
|
|
74123
|
+
return;
|
|
74124
|
+
this.previewSwipeStart = null;
|
|
74125
|
+
event.currentTarget.releasePointerCapture?.(event.pointerId);
|
|
74126
|
+
const deltaX = event.clientX - swipe.startX;
|
|
74127
|
+
const deltaY = event.clientY - swipe.startY;
|
|
74128
|
+
const absX = Math.abs(deltaX);
|
|
74129
|
+
const absY = Math.abs(deltaY);
|
|
74130
|
+
if (absX < 44 || absX < absY * 1.35)
|
|
74131
|
+
return;
|
|
74132
|
+
this.resetPreviewTilt();
|
|
74133
|
+
this.navigatePreview(deltaX < 0 ? 1 : -1);
|
|
74134
|
+
}
|
|
74135
|
+
cancelPreviewSwipe(event) {
|
|
74136
|
+
if (this.previewSwipeStart?.pointerId !== event.pointerId)
|
|
74137
|
+
return;
|
|
74138
|
+
this.previewSwipeStart = null;
|
|
74139
|
+
event.currentTarget.releasePointerCapture?.(event.pointerId);
|
|
74140
|
+
}
|
|
74111
74141
|
navigatePreview(direction) {
|
|
74112
74142
|
const items = this.previewCarouselItems();
|
|
74113
74143
|
if (items.length < 2)
|