@gamepark/react-game 6.24.2 → 6.25.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.
- package/dist/components/Avatar/Avatar.d.ts +4 -6
- package/dist/components/Avatar/Avatar.js +5 -4
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/ChatSpeechBubble.js +3 -2
- package/dist/components/Avatar/ChatSpeechBubble.js.map +1 -1
- package/dist/components/Avatar/SpeechBubble.d.ts +1 -0
- package/dist/components/Avatar/SpeechBubble.js +2 -1
- package/dist/components/Avatar/SpeechBubble.js.map +1 -1
- package/dist/components/GamePoints/GamePointIcon.js +1 -0
- package/dist/components/GamePoints/GamePointIcon.js.map +1 -1
- package/dist/components/GamePoints/GamePoints.js +1 -0
- package/dist/components/GamePoints/GamePoints.js.map +1 -1
- package/dist/components/GameProvider/GameContext.js +2 -1
- package/dist/components/GameProvider/GameContext.js.map +1 -1
- package/dist/components/GameProvider/GameProvider.js +3 -0
- package/dist/components/GameProvider/GameProvider.js.map +1 -1
- package/dist/components/Header/Header.d.ts +1 -0
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/MaterialHeader.js +1 -0
- package/dist/components/Header/MaterialHeader.js.map +1 -1
- package/dist/components/ImagesLoader/ImagesLoader.js +1 -0
- package/dist/components/ImagesLoader/ImagesLoader.js.map +1 -1
- package/dist/components/JournalTabs/Chat/Chat.d.ts +1 -0
- package/dist/components/JournalTabs/Chat/ChatMessage.js +1 -0
- package/dist/components/JournalTabs/Chat/ChatMessage.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js +1 -0
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatTextInput.js +1 -0
- package/dist/components/JournalTabs/Chat/ChatTextInput.js.map +1 -1
- package/dist/components/JournalTabs/Chat/CommonChat.js +1 -0
- package/dist/components/JournalTabs/Chat/CommonChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/SignInToChat.js +1 -0
- package/dist/components/JournalTabs/Chat/SignInToChat.js.map +1 -1
- package/dist/components/JournalTabs/History/GameOverHistory.js +1 -0
- package/dist/components/JournalTabs/History/GameOverHistory.js.map +1 -1
- package/dist/components/JournalTabs/History/History.js +2 -0
- package/dist/components/JournalTabs/History/History.js.map +1 -1
- package/dist/components/JournalTabs/History/HistoryEntry.js +1 -0
- package/dist/components/JournalTabs/History/HistoryEntry.js.map +1 -1
- package/dist/components/JournalTabs/History/StartGameHistory.js +1 -0
- package/dist/components/JournalTabs/History/StartGameHistory.js.map +1 -1
- package/dist/components/JournalTabs/JournalTabs.d.ts +1 -0
- package/dist/components/JournalTabs/JournalTabs.js +5 -1
- package/dist/components/JournalTabs/JournalTabs.js.map +1 -1
- package/dist/components/Letterbox/Letterbox.js +1 -0
- package/dist/components/Letterbox/Letterbox.js.map +1 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +1 -0
- package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -1
- package/dist/components/Picture/Picture.d.ts +1 -0
- package/dist/components/Picture/Picture.js +1 -0
- package/dist/components/Picture/Picture.js.map +1 -1
- package/dist/components/PlayerPanel/Counters.d.ts +1 -0
- package/dist/components/PlayerPanel/Counters.js +1 -0
- package/dist/components/PlayerPanel/Counters.js.map +1 -1
- package/dist/components/PlayerPanel/PlayerPanel.js +1 -0
- package/dist/components/PlayerPanel/PlayerPanel.js.map +1 -1
- package/dist/components/PlayerPanel/StyledPlayerPanel.d.ts +1 -0
- package/dist/components/PlayerPanel/StyledPlayerPanel.js +44 -16
- package/dist/components/PlayerPanel/StyledPlayerPanel.js.map +1 -1
- package/dist/components/PlayerTimer/PlayerTimer.d.ts +1 -0
- package/dist/components/PlayerTimer/PlayerTimer.js +1 -0
- package/dist/components/PlayerTimer/PlayerTimer.js.map +1 -1
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js +1 -0
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js.map +1 -1
- package/dist/components/buttons/ThemeButton/ThemeButton.d.ts +1 -0
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.d.ts +1 -0
- package/dist/components/dialogs/Dialog.d.ts +1 -0
- package/dist/components/dialogs/Dialog.js +3 -0
- package/dist/components/dialogs/Dialog.js.map +1 -1
- package/dist/components/dialogs/FailuresDialog.js +1 -0
- package/dist/components/dialogs/FailuresDialog.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js +1 -0
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchSection.js +1 -0
- package/dist/components/dialogs/ResultDialog/RematchSection.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/ResultDialog.js +20 -18
- package/dist/components/dialogs/ResultDialog/ResultDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js +1 -0
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js +1 -0
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js +2 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesDialog.js +1 -0
- package/dist/components/dialogs/RulesDialog/RulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js +1 -0
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js.map +1 -1
- package/dist/components/material/ComponentDescription.d.ts +32 -0
- package/dist/components/material/ComponentDescription.js +15 -1
- package/dist/components/material/ComponentDescription.js.map +1 -1
- package/dist/components/material/Dices/CubicDiceDescription.d.ts +4 -4
- package/dist/components/material/Dices/CubicDiceDescription.js +6 -7
- package/dist/components/material/Dices/CubicDiceDescription.js.map +1 -1
- package/dist/components/material/DraggableMaterial.js +14 -3
- package/dist/components/material/DraggableMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/BoardDescription.js +1 -1
- package/dist/components/material/FlatMaterial/CardDescription.js +3 -3
- package/dist/components/material/FlatMaterial/CardDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/FlatMaterial.d.ts +1 -0
- package/dist/components/material/FlatMaterial/FlatMaterial.js +2 -1
- package/dist/components/material/FlatMaterial/FlatMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/MoneyDescription.d.ts +7 -0
- package/dist/components/material/FlatMaterial/MoneyDescription.js +39 -0
- package/dist/components/material/FlatMaterial/MoneyDescription.js.map +1 -0
- package/dist/components/material/FlatMaterial/TokenDescription.js +2 -2
- package/dist/components/material/FlatMaterial/index.d.ts +1 -0
- package/dist/components/material/FlatMaterial/index.js +1 -0
- package/dist/components/material/FlatMaterial/index.js.map +1 -1
- package/dist/components/material/GameTable/DynamicItemsDisplay.js +2 -1
- package/dist/components/material/GameTable/DynamicItemsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/GameMaterialDisplay.js +1 -0
- package/dist/components/material/GameTable/GameMaterialDisplay.js.map +1 -1
- package/dist/components/material/GameTable/GameTable.d.ts +1 -0
- package/dist/components/material/GameTable/GameTable.js +1 -0
- package/dist/components/material/GameTable/GameTable.js.map +1 -1
- package/dist/components/material/GameTable/GameTableNavigation.js +1 -0
- package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
- package/dist/components/material/GameTable/ItemDisplay.d.ts +1 -0
- package/dist/components/material/GameTable/ItemDisplay.js +3 -2
- package/dist/components/material/GameTable/ItemDisplay.js.map +1 -1
- package/dist/components/material/GameTable/StaticItemsDisplay.d.ts +1 -0
- package/dist/components/material/GameTable/StaticLocationsDisplay.d.ts +1 -0
- package/dist/components/material/GameTable/focus/FocusProvider.js +1 -0
- package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -1
- package/dist/components/material/MaterialComponent.d.ts +2 -0
- package/dist/components/material/MaterialComponent.js +3 -2
- package/dist/components/material/MaterialComponent.js.map +1 -1
- package/dist/components/material/MaterialDescription.d.ts +124 -3
- package/dist/components/material/MaterialDescription.js +113 -9
- package/dist/components/material/MaterialDescription.js.map +1 -1
- package/dist/components/material/MobileMaterialDescription.d.ts +1 -0
- package/dist/components/material/MobileMaterialDescription.js +2 -1
- package/dist/components/material/MobileMaterialDescription.js.map +1 -1
- package/dist/components/material/Wheel/WheelContent.d.ts +14 -0
- package/dist/components/material/Wheel/WheelContent.js +52 -0
- package/dist/components/material/Wheel/WheelContent.js.map +1 -0
- package/dist/components/material/Wheel/WheelDescription.d.ts +19 -0
- package/dist/components/material/Wheel/WheelDescription.js +91 -0
- package/dist/components/material/Wheel/WheelDescription.js.map +1 -0
- package/dist/components/material/Wheel/WheelItem.d.ts +15 -0
- package/dist/components/material/Wheel/WheelItem.js +54 -0
- package/dist/components/material/Wheel/WheelItem.js.map +1 -0
- package/dist/components/material/Wheel/index.d.ts +1 -0
- package/dist/components/material/Wheel/index.js +18 -0
- package/dist/components/material/Wheel/index.js.map +1 -0
- package/dist/components/material/Writing/WritingDescription.js +2 -1
- package/dist/components/material/Writing/WritingDescription.js.map +1 -1
- package/dist/components/material/animations/CreateItemAnimations.js +1 -1
- package/dist/components/material/animations/DeleteItemAnimations.js +5 -3
- package/dist/components/material/animations/DeleteItemAnimations.js.map +1 -1
- package/dist/components/material/animations/ItemAnimations.js +1 -1
- package/dist/components/material/animations/MaterialAnimations.js +1 -1
- package/dist/components/material/animations/MaterialGameAnimations.js +2 -2
- package/dist/components/material/animations/MoveItemAnimations.js +7 -5
- package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js +2 -1
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js.map +1 -1
- package/dist/components/material/animations/RollItemAnimations.js +4 -1
- package/dist/components/material/animations/RollItemAnimations.js.map +1 -1
- package/dist/components/material/animations/ShuffleAnimations.js +1 -1
- package/dist/components/material/animations/isMovedOrDeletedItem.util.d.ts +1 -1
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js +1 -4
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js.map +1 -1
- package/dist/components/material/animations/rotations.utils.js +23 -12
- package/dist/components/material/animations/rotations.utils.js.map +1 -1
- package/dist/components/material/index.d.ts +1 -0
- package/dist/components/material/index.js +1 -0
- package/dist/components/material/index.js.map +1 -1
- package/dist/components/material/locations/DropAreaDescription.js +1 -1
- package/dist/components/material/locations/LocationComponent.js +2 -1
- package/dist/components/material/locations/LocationComponent.js.map +1 -1
- package/dist/components/material/locations/LocationDescription.d.ts +7 -0
- package/dist/components/material/locations/LocationDescription.js +8 -1
- package/dist/components/material/locations/LocationDescription.js.map +1 -1
- package/dist/components/material/locations/LocationDisplay.js +1 -0
- package/dist/components/material/locations/LocationDisplay.js.map +1 -1
- package/dist/components/material/locations/SimpleDropArea.js +1 -0
- package/dist/components/material/locations/SimpleDropArea.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.js +1 -0
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js +1 -0
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js +1 -0
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenButton.js +1 -0
- package/dist/components/menus/Fullscreen/FullscreenButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenDialog.js +1 -0
- package/dist/components/menus/Fullscreen/FullscreenDialog.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js +1 -0
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js.map +1 -1
- package/dist/components/menus/GiveUpButton/GiveUpButton.js +1 -0
- package/dist/components/menus/GiveUpButton/GiveUpButton.js.map +1 -1
- package/dist/components/menus/Menu/Menu.js +1 -0
- package/dist/components/menus/Menu/Menu.js.map +1 -1
- package/dist/components/menus/Menu/MenuPopButton.js +1 -0
- package/dist/components/menus/Menu/MenuPopButton.js.map +1 -1
- package/dist/components/menus/Menu/NavButton.d.ts +1 -0
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js +1 -0
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js.map +1 -1
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js +1 -0
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js.map +1 -1
- package/dist/components/menus/Result/ResultButton.js +1 -0
- package/dist/components/menus/Result/ResultButton.js.map +1 -1
- package/dist/components/menus/Result/ResultPopButton.js +1 -0
- package/dist/components/menus/Result/ResultPopButton.js.map +1 -1
- package/dist/components/menus/SoundButton/SoundButton.js +1 -0
- package/dist/components/menus/SoundButton/SoundButton.js.map +1 -1
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js +1 -0
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js.map +1 -1
- package/dist/components/menus/UndoButton/UndoButton.js +1 -0
- package/dist/components/menus/UndoButton/UndoButton.js.map +1 -1
- package/dist/components/menus/UndoButton/UndoPopButton.js +1 -0
- package/dist/components/menus/UndoButton/UndoPopButton.js.map +1 -1
- package/dist/components/tutorial/MaterialTutorial.js +2 -3
- package/dist/components/tutorial/MaterialTutorial.js.map +1 -1
- package/dist/components/tutorial/MaterialTutorialDisplay.js +1 -0
- package/dist/components/tutorial/MaterialTutorialDisplay.js.map +1 -1
- package/dist/components/tutorial/TutorialRulesWrapper.js +1 -0
- package/dist/components/tutorial/TutorialRulesWrapper.js.map +1 -1
- package/dist/hooks/useFullscreen.js +1 -0
- package/dist/hooks/useFullscreen.js.map +1 -1
- package/dist/hooks/useOpponentWithMaxTime.d.ts +3 -0
- package/dist/hooks/useOpponentWithMaxTime.js +3 -0
- package/dist/hooks/useOpponentWithMaxTime.js.map +1 -1
- package/dist/hooks/usePlayerTime.js +1 -1
- package/dist/hooks/usePlayerTime.js.map +1 -1
- package/dist/hooks/useResultText.js +1 -0
- package/dist/hooks/useResultText.js.map +1 -1
- package/dist/hooks/useSound.js +1 -0
- package/dist/hooks/useSound.js.map +1 -1
- package/dist/hooks/useWebP.js +2 -2
- package/dist/hooks/useWebP.js.map +1 -1
- package/dist/hooks/useZoomToElements.d.ts +3 -0
- package/dist/hooks/useZoomToElements.js +3 -0
- package/dist/hooks/useZoomToElements.js.map +1 -1
- package/dist/locators/DeckLocator.d.ts +3 -0
- package/dist/locators/DeckLocator.js +4 -1
- package/dist/locators/DeckLocator.js.map +1 -1
- package/dist/locators/FlexLocator.d.ts +39 -0
- package/dist/locators/FlexLocator.js +31 -1
- package/dist/locators/FlexLocator.js.map +1 -1
- package/dist/locators/HandLocator.d.ts +72 -0
- package/dist/locators/HandLocator.js +73 -1
- package/dist/locators/HandLocator.js.map +1 -1
- package/dist/locators/ListLocator.d.ts +36 -0
- package/dist/locators/ListLocator.js +31 -2
- package/dist/locators/ListLocator.js.map +1 -1
- package/dist/locators/Locator.d.ts +199 -1
- package/dist/locators/Locator.js +189 -1
- package/dist/locators/Locator.js.map +1 -1
- package/dist/locators/PileLocator.d.ts +30 -0
- package/dist/locators/PileLocator.js +32 -3
- package/dist/locators/PileLocator.js.map +1 -1
- package/dist/utilities/DeepPartial.d.ts +3 -0
- package/dist/utilities/combineEventListeners.d.ts +6 -0
- package/dist/utilities/combineEventListeners.js +6 -0
- package/dist/utilities/combineEventListeners.js.map +1 -1
- package/dist/utilities/findIfUnique.util.d.ts +6 -0
- package/dist/utilities/findIfUnique.util.js +6 -0
- package/dist/utilities/findIfUnique.util.js.map +1 -1
- package/dist/utilities/translation.util.d.ts +5 -0
- package/dist/utilities/translation.util.js +5 -0
- package/dist/utilities/translation.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/animations.constants.js +20 -0
- package/dist/utilities/zoom-pan-pinch/animations.constants.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/animations.util.js +7 -0
- package/dist/utilities/zoom-pan-pinch/animations.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/bounds.util.d.ts +10 -0
- package/dist/utilities/zoom-pan-pinch/bounds.util.js +8 -0
- package/dist/utilities/zoom-pan-pinch/bounds.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/calculation.util.d.ts +12 -0
- package/dist/utilities/zoom-pan-pinch/calculation.util.js +12 -0
- package/dist/utilities/zoom-pan-pinch/calculation.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/index.d.ts +4 -0
- package/dist/utilities/zoom-pan-pinch/index.js +4 -0
- package/dist/utilities/zoom-pan-pinch/index.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/zoom.util.d.ts +3 -0
- package/dist/utilities/zoom-pan-pinch/zoom.util.js +3 -0
- package/dist/utilities/zoom-pan-pinch/zoom.util.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameTable.js","sourceRoot":"","sources":["../../../../src/components/material/GameTable/GameTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GameTable.js","sourceRoot":"","sources":["../../../../src/components/material/GameTable/GameTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,sCAAiI;AACjI,gDAAuD;AACvD,wCAA4C;AAC5C,iDAAmE;AACnE,+BAA6F;AAC7F,6DAAwG;AACxG,oCAA0D;AAC1D,wCAA2E;AAC3E,oEAA4F;AAC5F,0DAA0D;AAE1D,6DAA2D;AAC3D,IAAO,YAAY,GAAG,+BAAmB,CAAC,YAAY,CAAA;AActD,IAAM,KAAK,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;AAC5B,IAAM,WAAW,GAAG,EAAE,QAAQ,EAAE,IAAI,EA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AAM,CAAC,IAAI,EAEhE,cAAc,CAAC,CAAC,CAAC,sBAAe,EAAE,QAAK,CAAC,CAAC,CAAC,qBAAc,EAAE,0BAAgB,EAAE,mBAAS,KAAK,MAAG,EAC7F,cAAc,CAAC,CAAC,CAAC,sBAAe,EAAE,QAAK,CAAC,CAAC,CAAC,qBAAc,EAAE,2BAAiB,EAAE,mBAAS,KAAK,MAAG,EAClF,EAAE,EACD,EAAE,GARkF,CAW9G,CAAA;AAED,IAAM,aAAa,GAAG,UAAC,KAAa,IAAK,WAAA,WAAG,+QAAA,2GAIZ,EAAK,qCACP,EAAK,mCACJ,EAAK,kBAGnC,KAL+B,KAAK,EACP,KAAK,EACJ,KAAK,GANK,CASxC,CAAA;AAED,IAAM,QAAQ,GAAG,UAAC,IAAY,EAAE,IAAY,EAAE,IAAY,EAAE,IAAY,IAAK,WAAA,WAAG,8IAAA,8CAErE,EAAW,iBACV,EAAW,OACtB,KAFU,IAAI,GAAG,IAAI,EACV,IAAI,GAAG,IAAI,GAHsD,CAI5E,CAAA"}
|
|
@@ -28,6 +28,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.GameTableNavigation = void 0;
|
|
30
30
|
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
31
|
+
/** @jsxImportSource @emotion/react */
|
|
31
32
|
var react_1 = require("@emotion/react");
|
|
32
33
|
var faSearchMinus_1 = require("@fortawesome/free-solid-svg-icons/faSearchMinus");
|
|
33
34
|
var faSearchPlus_1 = require("@fortawesome/free-solid-svg-icons/faSearchPlus");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameTableNavigation.js","sourceRoot":"","sources":["../../../../src/components/material/GameTable/GameTableNavigation.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GameTableNavigation.js","sourceRoot":"","sources":["../../../../src/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AAE,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,SAAS,CAAC,EAAlB,CAAkB,EAAE,QAAQ,EAAE,KAAK,gBACrE,uBAAC,mCAAe,IAAC,IAAI,EAAE,6BAAa,EAAE,GAAG,EAAE,OAAO,GAAG,IAC9C,KACL,EACN,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAE,CACjC,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,mBAAmB,uBAoB/B;AAED,IAAM,mBAAmB,OAAG,WAAG,uNAAA,mJAS9B,IAAA,CAAA;AAED,IAAM,MAAM,GAAG,CAAC,oBAAc,MAAE,WAAG,olBAAA,ghBA4BlC,KAAC,CAAA;AAEF,IAAM,OAAO,OAAG,WAAG,2FAAA,uBAElB,IAAA,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { MaterialItem } from '@gamepark/rules-api';
|
|
|
3
3
|
export declare const ItemDisplay: import("react").ForwardRefExoticComponent<{
|
|
4
4
|
type: number;
|
|
5
5
|
itemId?: any;
|
|
6
|
+
itemIndex?: number | undefined;
|
|
6
7
|
highlight?: boolean | undefined;
|
|
7
8
|
playDown?: boolean | undefined;
|
|
8
9
|
} & import("react").HTMLAttributes<HTMLElement> & {
|
|
@@ -40,6 +40,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.ItemDisplay = void 0;
|
|
42
42
|
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
43
|
+
/** @jsxImportSource @emotion/react */
|
|
43
44
|
var react_1 = require("@emotion/react");
|
|
44
45
|
var isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
45
46
|
var partition_1 = __importDefault(require("lodash/partition"));
|
|
@@ -82,13 +83,13 @@ exports.ItemDisplay = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
82
83
|
setTimeout(onShortClick !== null && onShortClick !== void 0 ? onShortClick : displayHelp);
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
|
-
filterEvents: function (event) { return !event.button; }
|
|
86
|
+
filterEvents: function (event) { return !event.button; } // Ignore clicks on mouse buttons > 0
|
|
86
87
|
})();
|
|
87
88
|
var canHaveChildren = (0, react_2.useMemo)(function () { return Object.values(context.locators).some(function (locator) { return (locator === null || locator === void 0 ? void 0 : locator.parentItemType) === type; }); }, [context, type]);
|
|
88
89
|
return (0, jsx_runtime_1.jsx)("div", __assign({ css: [
|
|
89
90
|
itemCss,
|
|
90
91
|
hoverTransform && hoverCss(itemTransform.join(' '), description.getSize(item.id), hoverTransform, animating || !!dragTransform)
|
|
91
|
-
] }, props, (0, utilities_1.combineEventListeners)(listeners, props), { children: (0, jsx_runtime_1.jsxs)(MaterialComponent_1.MaterialComponent, __assign({ ref: isFocused ? (0, react_merge_refs_1.mergeRefs)([ref, focusRef]) : ref, type: type, itemId: item.id, highlight: highlight, playDown: playDown !== null && playDown !== void 0 ? playDown : ((focus === null || focus === void 0 ? void 0 : focus.highlight) && !isFocused && !focusedLocations.length), style: { transform: transformStyle }, css: description.getItemExtraCss(item, itemContext) }, { children: [canHaveChildren ? (0, jsx_runtime_1.jsx)(ItemDropLocations, { locations: otherLocations, item: item, type: type }) : (0, jsx_runtime_1.jsx)(ItemLocations, { locations: otherLocations }), focusedLocations.length > 0 && (0, jsx_runtime_1.jsx)(locations_1.LocationsMask, { locations: focusedLocations.map(function (l) { return l.location; }), borderRadius: description.getBorderRadius(item.id) }), (0, jsx_runtime_1.jsx)(ItemLocations, { locations: focusedLocations })] })) }));
|
|
92
|
+
] }, props, (0, utilities_1.combineEventListeners)(listeners, props), { children: (0, jsx_runtime_1.jsxs)(MaterialComponent_1.MaterialComponent, __assign({ ref: isFocused ? (0, react_merge_refs_1.mergeRefs)([ref, focusRef]) : ref, itemIndex: index, type: type, itemId: item.id, highlight: highlight, playDown: playDown !== null && playDown !== void 0 ? playDown : ((focus === null || focus === void 0 ? void 0 : focus.highlight) && !isFocused && !focusedLocations.length), style: { transform: transformStyle }, css: description.getItemExtraCss(item, itemContext) }, { children: [canHaveChildren ? (0, jsx_runtime_1.jsx)(ItemDropLocations, { locations: otherLocations, item: item, type: type }) : (0, jsx_runtime_1.jsx)(ItemLocations, { locations: otherLocations }), focusedLocations.length > 0 && (0, jsx_runtime_1.jsx)(locations_1.LocationsMask, { locations: focusedLocations.map(function (l) { return l.location; }), borderRadius: description.getBorderRadius(item.id) }), (0, jsx_runtime_1.jsx)(ItemLocations, { locations: focusedLocations })] })) }));
|
|
92
93
|
});
|
|
93
94
|
var itemCss = (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n > * {\n position: absolute;\n }\n"], ["\n > * {\n position: absolute;\n }\n"])));
|
|
94
95
|
var hoverCss = function (itemTransform, itemSize, hoverTransform, disable) { return (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n @media (hover) {\n &:hover > * > * {\n transition: transform 50ms ease-in-out;\n transform: ", ";\n } \n }\n \n > * {\n pointer-events: ", ";\n }\n\n &:before {\n content: \" \";\n position: absolute;\n width: ", "em;\n height: ", "em;\n transform: ", ";\n }\n"], ["\n @media (hover) {\n &:hover > * > * {\n transition: transform 50ms ease-in-out;\n transform: ", ";\n } \n }\n \n > * {\n pointer-events: ", ";\n }\n\n &:before {\n content: \" \";\n position: absolute;\n width: ", "em;\n height: ", "em;\n transform: ", ";\n }\n"])), disable ? '' : hoverTransform, disable ? 'auto' : 'none', itemSize.width, itemSize.height, itemTransform); };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemDisplay.js","sourceRoot":"","sources":["../../../../src/components/material/GameTable/ItemDisplay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ItemDisplay.js","sourceRoot":"","sources":["../../../../src/components/material/GameTable/ItemDisplay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ArF,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAgE,CAAA;QACzH,CAAC,CAAC,GACD,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -16,6 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.FocusProvider = exports.useFocusContext = exports.FocusContext = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
19
|
+
/** @jsxImportSource @emotion/react */
|
|
19
20
|
var sumBy_1 = __importDefault(require("lodash/sumBy"));
|
|
20
21
|
var react_1 = require("react");
|
|
21
22
|
var react_zoom_pan_pinch_1 = require("react-zoom-pan-pinch");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusProvider.js","sourceRoot":"","sources":["../../../../../src/components/material/GameTable/focus/FocusProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FocusProvider.js","sourceRoot":"","sources":["../../../../../src/components/material/GameTable/focus/FocusProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,uDAAgC;AAChC,+BAAoF;AACpF,6DAAkD;AAClD,2CAAqD;AACrD,6DAA2D;AAU9C,QAAA,YAAY,GAAG,IAAA,qBAAa,EAA0B,IAAI,CAAC,CAAA;AAEjE,IAAM,eAAe,GAAG;IAC7B,IAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,oBAAY,CAAyC,CAAA;IACrF,IAAI,YAAY,KAAK,IAAI,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAA;KACnF;IACD,OAAO,YAAY,CAAA;AACrB,CAAC,CAAA;AANY,QAAA,eAAe,mBAM3B;AAEM,IAAM,aAAa,GAAO,UAAC,EAAY;QAAV,QAAQ,cAAA;IAC1C,IAAM,cAAc,GAAG,IAAA,yBAAiB,GAAE,CAAA;I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aAAR,QAAQ,uBAAR,QAAQ,CAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,0CAAE,KAAK,mCAAI,QAAQ,CAAC,CAAA;SAAA,CAChF;UACC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAA;AAC5B,CAAC"}
|
|
@@ -2,12 +2,14 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
export type MaterialComponentProps<M extends number = number, ItemId = any> = {
|
|
3
3
|
type: M;
|
|
4
4
|
itemId?: ItemId;
|
|
5
|
+
itemIndex?: number;
|
|
5
6
|
highlight?: boolean;
|
|
6
7
|
playDown?: boolean;
|
|
7
8
|
} & HTMLAttributes<HTMLElement>;
|
|
8
9
|
export declare const MaterialComponent: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
9
10
|
type: number;
|
|
10
11
|
itemId?: any;
|
|
12
|
+
itemIndex?: number | undefined;
|
|
11
13
|
highlight?: boolean | undefined;
|
|
12
14
|
playDown?: boolean | undefined;
|
|
13
15
|
} & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -28,18 +28,19 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.MaterialComponent = void 0;
|
|
30
30
|
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
31
|
+
/** @jsxImportSource @emotion/react */
|
|
31
32
|
var react_1 = require("@emotion/react");
|
|
32
33
|
var react_2 = require("react");
|
|
33
34
|
var css_1 = require("../../css");
|
|
34
35
|
var hooks_1 = require("../../hooks");
|
|
35
36
|
exports.MaterialComponent = (0, react_2.memo)((0, react_2.forwardRef)(function (_a, ref) {
|
|
36
|
-
var type = _a.type, itemId = _a.itemId, highlight = _a.highlight, playDown = _a.playDown, props = __rest(_a, ["type", "itemId", "highlight", "playDown"]);
|
|
37
|
+
var type = _a.type, itemId = _a.itemId, itemIndex = _a.itemIndex, highlight = _a.highlight, playDown = _a.playDown, props = __rest(_a, ["type", "itemId", "itemIndex", "highlight", "playDown"]);
|
|
37
38
|
var description = (0, hooks_1.useMaterialDescription)(type);
|
|
38
39
|
if (!description)
|
|
39
40
|
return null;
|
|
40
41
|
var _b = description.getSize(itemId), width = _b.width, height = _b.height;
|
|
41
42
|
var componentCss = (0, react_2.useMemo)(function () { return [materialCss, (0, css_1.sizeCss)(width, height)]; }, [width, height]);
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ ref: ref, css: componentCss }, props, { children: (0, jsx_runtime_1.jsx)("div", __assign({ css: hoverWrapper }, { children: description.content(__assign({ itemId: itemId, highlight: highlight, playDown: playDown }, props)) })) })));
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ ref: ref, css: componentCss }, props, { children: (0, jsx_runtime_1.jsx)("div", __assign({ css: hoverWrapper }, { children: description.content(__assign({ type: type, itemId: itemId, highlight: highlight, playDown: playDown, itemIndex: itemIndex }, props)) })) })));
|
|
43
44
|
}));
|
|
44
45
|
var hoverWrapper = (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform-style: preserve-3d;\n -webkit-tap-highlight-color: transparent;\n transform-origin: center;\n width: 100%;\n height: 100%;\n"], ["\n transform-style: preserve-3d;\n -webkit-tap-highlight-color: transparent;\n transform-origin: center;\n width: 100%;\n height: 100%;\n"])));
|
|
45
46
|
exports.MaterialComponent.displayName = 'MaterialComponent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialComponent.js","sourceRoot":"","sources":["../../../src/components/material/MaterialComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MaterialComponent.js","sourceRoot":"","sources":["../../../src/components/material/MaterialComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,wCAAoC;AACpC,+BAAiE;AACjE,i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, MaterialItem, MaterialMove } from '@gamepark/rules-api';
|
|
4
|
+
import { TFunction } from 'i18next';
|
|
3
5
|
import { ComponentType, FC, HTMLAttributes } from 'react';
|
|
4
6
|
import { ItemContext, MaterialContext } from '../../locators';
|
|
5
7
|
import { ComponentDescription } from './ComponentDescription';
|
|
6
8
|
export type MaterialHelpProps<P extends number = number, M extends number = number, L extends number = number> = {
|
|
7
9
|
closeDialog: () => void;
|
|
8
10
|
} & Omit<MaterialHelpDisplay<P, M, L>, 'type'>;
|
|
9
|
-
export type MaterialContentProps<ItemId = any> = {
|
|
11
|
+
export type MaterialContentProps<ItemId = any, M extends number = number> = {
|
|
10
12
|
itemId: ItemId;
|
|
13
|
+
itemIndex?: number;
|
|
14
|
+
type?: M;
|
|
11
15
|
highlight?: boolean;
|
|
12
16
|
playDown?: boolean;
|
|
13
17
|
} & HTMLAttributes<HTMLElement>;
|
|
18
|
+
/**
|
|
19
|
+
* Base class to describe the material in a game
|
|
20
|
+
*/
|
|
14
21
|
export declare abstract class MaterialDescription<P extends number = number, M extends number = number, L extends number = number, ItemId = any> extends ComponentDescription<ItemId> {
|
|
22
|
+
/**
|
|
23
|
+
* Content of the help dialog opened when an item is clicked
|
|
24
|
+
*/
|
|
15
25
|
help?: ComponentType<MaterialHelpProps<P, M, L>>;
|
|
26
|
+
/**
|
|
27
|
+
* The React component to display
|
|
28
|
+
*/
|
|
16
29
|
abstract content: FC<MaterialContentProps<ItemId>>;
|
|
30
|
+
/**
|
|
31
|
+
* If the component can be moved (token, cards...) or not (writing)
|
|
32
|
+
*/
|
|
17
33
|
isMobile: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* See {@link getStaticItems}
|
|
36
|
+
*/
|
|
18
37
|
staticItem?: MaterialItem<P, L>;
|
|
38
|
+
/**
|
|
39
|
+
* See {@link getStaticItems}
|
|
40
|
+
*/
|
|
19
41
|
staticItems: MaterialItem<P, L>[];
|
|
42
|
+
/**
|
|
43
|
+
* Return any items to display that are not part of the game state because they never move (board or unlimited stockpiles for instance).
|
|
44
|
+
* Default value: {@link staticItem} if defined, otherwise {@link staticItems}. Override if the static items depends on the context.
|
|
45
|
+
*
|
|
46
|
+
* @param {MaterialContext} _context Context of the game
|
|
47
|
+
* @returns {MaterialItem[]} the extra items to display
|
|
48
|
+
*/
|
|
20
49
|
getStaticItems(_context: MaterialContext<P, M, L>): MaterialItem<P, L>[];
|
|
50
|
+
/**
|
|
51
|
+
* See {@link getStockLocation}
|
|
52
|
+
*/
|
|
21
53
|
stockLocation?: Location<P, L>;
|
|
54
|
+
/**
|
|
55
|
+
* If items are created of deleted, by default the animation will fade in or fade out the item quickly.
|
|
56
|
+
* If you want to animate from/to a location (a stockpile for instance), implement this function or simply {@link stockLocation}.
|
|
57
|
+
* @param _item Item that is getting created or deleted.
|
|
58
|
+
* @param _context Context of the game
|
|
59
|
+
* @returns The location to animate from/to
|
|
60
|
+
*/
|
|
22
61
|
getStockLocation(_item: MaterialItem<P, L>, _context: MaterialContext<P, M, L>): Location<P, L> | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* See {@link getLocations}
|
|
64
|
+
*/
|
|
23
65
|
location?: Location<P, L>;
|
|
66
|
+
/**
|
|
67
|
+
* See {@link getLocations}
|
|
68
|
+
*/
|
|
24
69
|
locations: Location<P, L>[];
|
|
70
|
+
/**
|
|
71
|
+
* The internal locations of the item, for instance the spots to put material on a board.
|
|
72
|
+
* Will return {@link location} by default if defined, {@link locations} otherwise.
|
|
73
|
+
*
|
|
74
|
+
* @param _item The item that contains the locations
|
|
75
|
+
* @param _context Context of the game
|
|
76
|
+
*/
|
|
25
77
|
getLocations(_item: MaterialItem<P, L>, _context: ItemContext<P, M, L>): Location<P, L>[];
|
|
78
|
+
/**
|
|
79
|
+
* This function determines if an item can currently be dragged by the user to perform a given move.
|
|
80
|
+
*
|
|
81
|
+
* @param _move The move to consider
|
|
82
|
+
* @param _context Context of the item
|
|
83
|
+
*/
|
|
26
84
|
canDrag(_move: MaterialMove<P, M, L>, _context: ItemContext<P, M, L>): boolean;
|
|
27
|
-
|
|
28
|
-
|
|
85
|
+
/**
|
|
86
|
+
* This function determines if a move can be played by clicking for 1 second on an item
|
|
87
|
+
*
|
|
88
|
+
* @param move The move to consider
|
|
89
|
+
* @param context Context of the item
|
|
90
|
+
*/
|
|
91
|
+
canLongClick(move: MaterialMove<P, M, L>, context: ItemContext<P, M, L>): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* This function determines if a move can be played by clicking on an item
|
|
94
|
+
*
|
|
95
|
+
* @param move The move to consider
|
|
96
|
+
* @param context Context of the item
|
|
97
|
+
*/
|
|
98
|
+
canShortClick(move: MaterialMove<P, M, L>, context: ItemContext<P, M, L>): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* This function returns the move that should be played when clicking on an item, if any
|
|
101
|
+
*
|
|
102
|
+
* @param _context Context of the item
|
|
103
|
+
*/
|
|
29
104
|
getShortClickMove(_context: ItemContext<P, M, L>): MaterialMove<P, M, L> | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* This function returns the local move that should be played when clicking on an item, if any
|
|
107
|
+
*
|
|
108
|
+
* @param _context Context of the item
|
|
109
|
+
*/
|
|
30
110
|
getShortClickLocalMove(_context: ItemContext<P, M, L>): MaterialMove<P, M, L> | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Thickness of the item
|
|
113
|
+
*/
|
|
31
114
|
thickness: number;
|
|
115
|
+
/**
|
|
116
|
+
* Returns the thickness of the item. Default to {@link thickness}
|
|
117
|
+
* @param _item the item
|
|
118
|
+
* @param _context Context of the item
|
|
119
|
+
* @returns {number} The thickness
|
|
120
|
+
*/
|
|
32
121
|
getThickness(_item: MaterialItem<P, L>, _context: ItemContext<P, M, L>): number;
|
|
122
|
+
/**
|
|
123
|
+
* Any extra css to add on the item
|
|
124
|
+
* @param _item The item
|
|
125
|
+
* @param _context Context of the item
|
|
126
|
+
* @returns The css, using Emotion framework
|
|
127
|
+
*/
|
|
33
128
|
getItemExtraCss(_item: MaterialItem<P, L>, _context: ItemContext<P, M, L>): Interpolation<Theme>;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the item should be highlighted
|
|
131
|
+
* @param _item The item
|
|
132
|
+
* @param _context Context of the item
|
|
133
|
+
* @return true if the item should be highlighted
|
|
134
|
+
*/
|
|
34
135
|
highlight(_item: MaterialItem<P, L>, _context: ItemContext<P, M, L>): boolean | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* The move to execute in order to display the help dialog about this item.
|
|
138
|
+
* By default, open the help about this specific item, but it can be the help about the location of the item sometimes.
|
|
139
|
+
* @param item The item
|
|
140
|
+
* @param context Context of the item
|
|
141
|
+
* @return The move to play to open the help dialog
|
|
142
|
+
*/
|
|
35
143
|
displayHelp(item: MaterialItem<P, L>, { type, index, displayIndex }: ItemContext<P, M, L>): import("@gamepark/rules-api").DisplayHelp<P, M, L>;
|
|
144
|
+
/**
|
|
145
|
+
* Builds the CSS transform that will be applied to the item.
|
|
146
|
+
* @param item Item to position
|
|
147
|
+
* @param context Context of the item
|
|
148
|
+
* @returns {string[]} a list of CSS transformations
|
|
149
|
+
*/
|
|
36
150
|
getItemTransform(item: MaterialItem<P, L>, context: ItemContext<P, M, L>): string[];
|
|
151
|
+
/**
|
|
152
|
+
* Builds the CSS transform that will be applied to the item when hovered.
|
|
153
|
+
* @param _item Item to position
|
|
154
|
+
* @param _context Context of the item
|
|
155
|
+
* @returns {string[]} a list of CSS transformations
|
|
156
|
+
*/
|
|
37
157
|
getHoverTransform(_item: MaterialItem<P, L>, _context: ItemContext<P, M, L>): string[];
|
|
38
158
|
getDropLocations(item: MaterialItem<P, L>, move: MaterialMove<P, M, L>, context: ItemContext<P, M, L>): Location<P, L>[];
|
|
159
|
+
getTooltip(item: MaterialItem<P, L>, t: TFunction, _context: ItemContext<P, M, L>): string | null | undefined;
|
|
39
160
|
}
|
|
40
161
|
export type MaterialDescriptionRecord<P extends number = number, M extends number = number, L extends number = number> = Record<M, MaterialDescription<P, M, L>>;
|
|
@@ -19,55 +19,148 @@ exports.MaterialDescription = void 0;
|
|
|
19
19
|
var rules_api_1 = require("@gamepark/rules-api");
|
|
20
20
|
var ComponentDescription_1 = require("./ComponentDescription");
|
|
21
21
|
var displayMaterialHelp = rules_api_1.MaterialMoveBuilder.displayMaterialHelp;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Base class to describe the material in a game
|
|
24
|
+
*/
|
|
25
|
+
var MaterialDescription = /** @class */ (function (_super) {
|
|
23
26
|
__extends(MaterialDescription, _super);
|
|
24
27
|
function MaterialDescription() {
|
|
25
28
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
/**
|
|
30
|
+
* If the component can be moved (token, cards...) or not (writing)
|
|
31
|
+
*/
|
|
26
32
|
_this.isMobile = false;
|
|
33
|
+
/**
|
|
34
|
+
* See {@link getStaticItems}
|
|
35
|
+
*/
|
|
27
36
|
_this.staticItems = [];
|
|
37
|
+
/**
|
|
38
|
+
* See {@link getLocations}
|
|
39
|
+
*/
|
|
28
40
|
_this.locations = [];
|
|
41
|
+
/**
|
|
42
|
+
* Thickness of the item
|
|
43
|
+
*/
|
|
29
44
|
_this.thickness = 0.05;
|
|
30
45
|
return _this;
|
|
31
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Return any items to display that are not part of the game state because they never move (board or unlimited stockpiles for instance).
|
|
49
|
+
* Default value: {@link staticItem} if defined, otherwise {@link staticItems}. Override if the static items depends on the context.
|
|
50
|
+
*
|
|
51
|
+
* @param {MaterialContext} _context Context of the game
|
|
52
|
+
* @returns {MaterialItem[]} the extra items to display
|
|
53
|
+
*/
|
|
32
54
|
MaterialDescription.prototype.getStaticItems = function (_context) {
|
|
33
55
|
return this.staticItem ? [this.staticItem] : this.staticItems;
|
|
34
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* If items are created of deleted, by default the animation will fade in or fade out the item quickly.
|
|
59
|
+
* If you want to animate from/to a location (a stockpile for instance), implement this function or simply {@link stockLocation}.
|
|
60
|
+
* @param _item Item that is getting created or deleted.
|
|
61
|
+
* @param _context Context of the game
|
|
62
|
+
* @returns The location to animate from/to
|
|
63
|
+
*/
|
|
35
64
|
MaterialDescription.prototype.getStockLocation = function (_item, _context) {
|
|
36
65
|
return this.stockLocation;
|
|
37
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* The internal locations of the item, for instance the spots to put material on a board.
|
|
69
|
+
* Will return {@link location} by default if defined, {@link locations} otherwise.
|
|
70
|
+
*
|
|
71
|
+
* @param _item The item that contains the locations
|
|
72
|
+
* @param _context Context of the game
|
|
73
|
+
*/
|
|
38
74
|
MaterialDescription.prototype.getLocations = function (_item, _context) {
|
|
39
75
|
return this.location ? [this.location] : this.locations;
|
|
40
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* This function determines if an item can currently be dragged by the user to perform a given move.
|
|
79
|
+
*
|
|
80
|
+
* @param _move The move to consider
|
|
81
|
+
* @param _context Context of the item
|
|
82
|
+
*/
|
|
41
83
|
MaterialDescription.prototype.canDrag = function (_move, _context) {
|
|
42
84
|
return false;
|
|
43
85
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
86
|
+
/**
|
|
87
|
+
* This function determines if a move can be played by clicking for 1 second on an item
|
|
88
|
+
*
|
|
89
|
+
* @param move The move to consider
|
|
90
|
+
* @param context Context of the item
|
|
91
|
+
*/
|
|
92
|
+
MaterialDescription.prototype.canLongClick = function (move, context) {
|
|
93
|
+
return ((0, rules_api_1.isMoveItem)(move) || (0, rules_api_1.isDeleteItem)(move) || (0, rules_api_1.isRoll)(move)) && move.itemType === context.type && move.itemIndex === context.index;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* This function determines if a move can be played by clicking on an item
|
|
97
|
+
*
|
|
98
|
+
* @param move The move to consider
|
|
99
|
+
* @param context Context of the item
|
|
100
|
+
*/
|
|
101
|
+
MaterialDescription.prototype.canShortClick = function (move, context) {
|
|
102
|
+
return (0, rules_api_1.isSelectItem)(move) && move.itemType === context.type && move.itemIndex === context.index;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* This function returns the move that should be played when clicking on an item, if any
|
|
106
|
+
*
|
|
107
|
+
* @param _context Context of the item
|
|
108
|
+
*/
|
|
52
109
|
MaterialDescription.prototype.getShortClickMove = function (_context) {
|
|
53
110
|
return undefined;
|
|
54
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* This function returns the local move that should be played when clicking on an item, if any
|
|
114
|
+
*
|
|
115
|
+
* @param _context Context of the item
|
|
116
|
+
*/
|
|
55
117
|
MaterialDescription.prototype.getShortClickLocalMove = function (_context) {
|
|
56
118
|
return undefined;
|
|
57
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* Returns the thickness of the item. Default to {@link thickness}
|
|
122
|
+
* @param _item the item
|
|
123
|
+
* @param _context Context of the item
|
|
124
|
+
* @returns {number} The thickness
|
|
125
|
+
*/
|
|
58
126
|
MaterialDescription.prototype.getThickness = function (_item, _context) {
|
|
59
127
|
return this.thickness;
|
|
60
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Any extra css to add on the item
|
|
131
|
+
* @param _item The item
|
|
132
|
+
* @param _context Context of the item
|
|
133
|
+
* @returns The css, using Emotion framework
|
|
134
|
+
*/
|
|
61
135
|
MaterialDescription.prototype.getItemExtraCss = function (_item, _context) {
|
|
62
136
|
return;
|
|
63
137
|
};
|
|
138
|
+
/**
|
|
139
|
+
* Whether the item should be highlighted
|
|
140
|
+
* @param _item The item
|
|
141
|
+
* @param _context Context of the item
|
|
142
|
+
* @return true if the item should be highlighted
|
|
143
|
+
*/
|
|
64
144
|
MaterialDescription.prototype.highlight = function (_item, _context) {
|
|
65
145
|
return;
|
|
66
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* The move to execute in order to display the help dialog about this item.
|
|
149
|
+
* By default, open the help about this specific item, but it can be the help about the location of the item sometimes.
|
|
150
|
+
* @param item The item
|
|
151
|
+
* @param context Context of the item
|
|
152
|
+
* @return The move to play to open the help dialog
|
|
153
|
+
*/
|
|
67
154
|
MaterialDescription.prototype.displayHelp = function (item, _a) {
|
|
68
155
|
var type = _a.type, index = _a.index, displayIndex = _a.displayIndex;
|
|
69
156
|
return displayMaterialHelp(type, item, index, displayIndex);
|
|
70
157
|
};
|
|
158
|
+
/**
|
|
159
|
+
* Builds the CSS transform that will be applied to the item.
|
|
160
|
+
* @param item Item to position
|
|
161
|
+
* @param context Context of the item
|
|
162
|
+
* @returns {string[]} a list of CSS transformations
|
|
163
|
+
*/
|
|
71
164
|
MaterialDescription.prototype.getItemTransform = function (item, context) {
|
|
72
165
|
var transform = ['translate(-50%, -50%)'];
|
|
73
166
|
var locator = context.locators[item.location.type];
|
|
@@ -75,6 +168,12 @@ var MaterialDescription = (function (_super) {
|
|
|
75
168
|
transform.push.apply(transform, locator.placeItem(item, context));
|
|
76
169
|
return transform;
|
|
77
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* Builds the CSS transform that will be applied to the item when hovered.
|
|
173
|
+
* @param _item Item to position
|
|
174
|
+
* @param _context Context of the item
|
|
175
|
+
* @returns {string[]} a list of CSS transformations
|
|
176
|
+
*/
|
|
78
177
|
MaterialDescription.prototype.getHoverTransform = function (_item, _context) {
|
|
79
178
|
return [];
|
|
80
179
|
};
|
|
@@ -89,6 +188,11 @@ var MaterialDescription = (function (_super) {
|
|
|
89
188
|
}
|
|
90
189
|
return [];
|
|
91
190
|
};
|
|
191
|
+
MaterialDescription.prototype.getTooltip = function (item, t, _context) {
|
|
192
|
+
if (item.quantity)
|
|
193
|
+
return t('quantity.tooltip', { n: item.quantity });
|
|
194
|
+
return;
|
|
195
|
+
};
|
|
92
196
|
return MaterialDescription;
|
|
93
197
|
}(ComponentDescription_1.ComponentDescription));
|
|
94
198
|
exports.MaterialDescription = MaterialDescription;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialDescription.js","sourceRoot":"","sources":["../../../src/components/material/MaterialDescription.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,iDAU4B;
|
|
1
|
+
{"version":3,"file":"MaterialDescription.js","sourceRoot":"","sources":["../../../src/components/material/MaterialDescription.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,iDAU4B;AAI5B,+DAA6D;AAC7D,IAAO,mBAAmB,GAAG,+BAAmB,CAAC,mBAAmB,CAAA;AAcpE;;GAEG;AACH;IACU,uCAA4B;IADtC;QAAA,qEA8MC;QAlMC;;WAEG;QACH,cAAQ,GAAG,KAAK,CAAA;QAOhB;;WAEG;QACH,iBAAW,GAAyB,EAAE,CAAA;QAkCtC;;WAEG;QACH,eAAS,GAAqB,EAAE,CAAA;QA6DhC;;WAEG;QACH,eAAS,GAAG,IAAI,CAAA;;IAgFlB,CAAC;IAnLC;;;;;;OAMG;IACH,4CAAc,GAAd,UAAe,QAAkC;QAC/C,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAA;IAC/D,CAAC;IAOD;;;;;;OAMG;IACH,8CAAgB,GAAhB,UAAiB,KAAyB,EAAE,QAAkC;QAC5E,OAAO,IAAI,CAAC,aAAa,CAAA;IAC3B,CAAC;IAYD;;;;;;OAMG;IACH,0CAAY,GAAZ,UAAa,KAAyB,EAAE,QAA8B;QACpE,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAA;IACzD,CAAC;IAED;;;;;OAKG;IACH,qCAAO,GAAP,UAAQ,KAA4B,EAAE,QAA8B;QAClE,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;;;OAKG;IACH,0CAAY,GAAZ,UAAa,IAA2B,EAAE,OAA6B;QACrE,OAAO,CAAC,IAAA,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Module", { value: true });
|
|
32
32
|
exports.MobileMaterialDescription = void 0;
|
|
33
|
+
/** @jsxImportSource @emotion/react */
|
|
33
34
|
var rules_api_1 = require("@gamepark/rules-api");
|
|
34
35
|
var isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
35
36
|
var MaterialDescription_1 = require("./MaterialDescription");
|
|
36
|
-
var MobileMaterialDescription = (function (_super) {
|
|
37
|
+
var MobileMaterialDescription = /** @class */ (function (_super) {
|
|
37
38
|
__extends(MobileMaterialDescription, _super);
|
|
38
39
|
function MobileMaterialDescription() {
|
|
39
40
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileMaterialDescription.js","sourceRoot":"","sources":["../../../src/components/material/MobileMaterialDescription.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MobileMaterialDescription.js","sourceRoot":"","sources":["../../../src/components/material/MobileMaterialDescription.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,iDAAkG;AAClG,2DAAoC;AAEpC,6DAA2D;AAE3D;IACU,6CAAoC;IAD9C;QAAA,qEAuBC;QArBC,cAAQ,GAAG,IAAI,CAAA;;IAqBjB,CAAC;IAnBC,2CAAO,GAAP,UAAQ,IAA2B,EAAE,OAA6B;;QAChE,IAAI,IAAA,sBAAU,EAAC,IAAI,CAAC,EAAE;YACpB,OAAO,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,MAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;SACpJ;aAAM,IAAI,IAAA,wBAAY,EAAC,IAAI,CAAC,EAAE;YAC7B,OAAO,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;SACjH;aAAM;YACL,OAAO,KAAK,CAAA;SACb;IACH,CAAC;IAES,iDAAa,GAAvB,UAAwB,IAAuB,EAAE,EAA4C;;YAA1C,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA;QACnE,IAAM,KAAkC,MAAA,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,0CAAE,QAAS,EAA9E,QAAQ,cAAA,EAAK,cAAc,cAA7B,YAA+B,CAAiD,CAAA;QACtF,IAAM,KAA8C,IAAI,CAAC,QAAQ,EAA/C,YAAY,cAAA,EAAK,YAAY,cAAzC,YAA2C,CAAgB,CAAA;QACjE,OAAO,CAAC,IAAA,iBAAO,EAAC,cAAc,EAAE,YAAY,CAAC,CAAA;IAC/C,CAAC;IAES,mDAAe,GAAzB,UAA0B,KAAoB,EAAE,QAA8B;QAC5E,OAAO,IAAI,CAAC,aAAa,KAAK,SAAS,CAAA;IACzC,CAAC;IACH,gCAAC;AAAD,CAAC,AAvBD,CACU,yCAAmB,GAsB5B;AAvBqB,8DAAyB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import { Interpolation, Theme } from '@emotion/react';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
import { MaterialContentProps } from '../MaterialDescription';
|
|
5
|
+
import { ComponentSize } from '../ComponentDescription';
|
|
6
|
+
export type WheelContentProps = {
|
|
7
|
+
size: ComponentSize;
|
|
8
|
+
image?: string;
|
|
9
|
+
wheelImage?: string;
|
|
10
|
+
borderRadius?: number;
|
|
11
|
+
extraCss?: Interpolation<Theme>;
|
|
12
|
+
wheelExtraCss?: Interpolation<Theme>;
|
|
13
|
+
} & MaterialContentProps;
|
|
14
|
+
export declare const WheelContent: FC<WheelContentProps>;
|