@kitten-science/kitten-scientists 2.0.0-beta.10-20250403-28002ba → 2.0.0-beta.10-20250407-52a10b3
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/lib/BonfireManager.d.ts +3 -3
- package/lib/BonfireManager.d.ts.map +1 -1
- package/lib/BonfireManager.js +10 -10
- package/lib/BonfireManager.js.map +1 -1
- package/lib/Engine.d.ts +89 -89
- package/lib/Engine.d.ts.map +1 -1
- package/lib/Engine.js +17 -17
- package/lib/Engine.js.map +1 -1
- package/lib/KittenScientists.d.ts +1 -1
- package/lib/KittenScientists.d.ts.map +1 -1
- package/lib/KittenScientists.js +8 -8
- package/lib/KittenScientists.js.map +1 -1
- package/lib/ReligionManager.d.ts +2 -2
- package/lib/ReligionManager.d.ts.map +1 -1
- package/lib/ReligionManager.js +6 -6
- package/lib/ReligionManager.js.map +1 -1
- package/lib/ScienceManager.d.ts +2 -2
- package/lib/ScienceManager.d.ts.map +1 -1
- package/lib/ScienceManager.js +2 -2
- package/lib/ScienceManager.js.map +1 -1
- package/lib/SpaceManager.d.ts +2 -2
- package/lib/SpaceManager.d.ts.map +1 -1
- package/lib/SpaceManager.js +2 -2
- package/lib/SpaceManager.js.map +1 -1
- package/lib/TimeControlManager.d.ts +2 -2
- package/lib/TimeControlManager.d.ts.map +1 -1
- package/lib/TimeControlManager.js +3 -3
- package/lib/TimeControlManager.js.map +1 -1
- package/lib/TimeManager.d.ts +2 -2
- package/lib/TimeManager.d.ts.map +1 -1
- package/lib/TimeManager.js +3 -3
- package/lib/TimeManager.js.map +1 -1
- package/lib/TradeManager.d.ts +3 -3
- package/lib/TradeManager.d.ts.map +1 -1
- package/lib/TradeManager.js +4 -4
- package/lib/TradeManager.js.map +1 -1
- package/lib/UpgradeManager.js +3 -3
- package/lib/UpgradeManager.js.map +1 -1
- package/lib/VillageManager.d.ts +3 -3
- package/lib/VillageManager.d.ts.map +1 -1
- package/lib/VillageManager.js +2 -2
- package/lib/VillageManager.js.map +1 -1
- package/lib/WorkshopManager.d.ts +3 -3
- package/lib/WorkshopManager.d.ts.map +1 -1
- package/lib/WorkshopManager.js +4 -4
- package/lib/WorkshopManager.js.map +1 -1
- package/lib/helper/BulkPurchaseHelper.d.ts +1 -1
- package/lib/helper/BulkPurchaseHelper.d.ts.map +1 -1
- package/lib/helper/BulkPurchaseHelper.js +5 -5
- package/lib/helper/BulkPurchaseHelper.js.map +1 -1
- package/lib/i18n/en-US.json +20 -20
- package/lib/i18n/translations/da-DK.json +20 -20
- package/lib/i18n/translations/de-DE.json +20 -20
- package/lib/i18n/translations/fr-FR.json +20 -20
- package/lib/i18n/translations/he-IL.json +20 -20
- package/lib/i18n/translations/ko-KR.json +20 -20
- package/lib/i18n/translations/ru-RU.json +20 -20
- package/lib/i18n/translations/zh-CN.json +20 -20
- package/lib/images/Icons.d.ts +8 -8
- package/lib/images/Icons.d.ts.map +1 -1
- package/lib/images/Icons.js +8 -8
- package/lib/images/Icons.js.map +1 -1
- package/lib/settings/BonfireSettings.d.ts.map +1 -1
- package/lib/settings/BonfireSettings.js.map +1 -1
- package/lib/settings/BuildingUpgradeSettings.d.ts.map +1 -1
- package/lib/settings/BuildingUpgradeSettings.js.map +1 -1
- package/lib/settings/ElectLeaderSettings.d.ts.map +1 -1
- package/lib/settings/ElectLeaderSettings.js.map +1 -1
- package/lib/settings/EmbassySettings.d.ts.map +1 -1
- package/lib/settings/EmbassySettings.js.map +1 -1
- package/lib/settings/EngineSettings.d.ts.map +1 -1
- package/lib/settings/EngineSettings.js.map +1 -1
- package/lib/settings/LogFilterSettings.d.ts.map +1 -1
- package/lib/settings/LogFilterSettings.js.map +1 -1
- package/lib/settings/MissionSettings.d.ts.map +1 -1
- package/lib/settings/MissionSettings.js.map +1 -1
- package/lib/settings/PolicySettings.d.ts.map +1 -1
- package/lib/settings/PolicySettings.js.map +1 -1
- package/lib/settings/ReligionSettings.d.ts.map +1 -1
- package/lib/settings/ReligionSettings.js.map +1 -1
- package/lib/settings/ResetBonfireSettings.d.ts.map +1 -1
- package/lib/settings/ResetBonfireSettings.js.map +1 -1
- package/lib/settings/ResetReligionSettings.d.ts.map +1 -1
- package/lib/settings/ResetReligionSettings.js.map +1 -1
- package/lib/settings/ResetResourcesSettings.d.ts.map +1 -1
- package/lib/settings/ResetResourcesSettings.js.map +1 -1
- package/lib/settings/ResetSettings.d.ts.map +1 -1
- package/lib/settings/ResetSettings.js.map +1 -1
- package/lib/settings/ResetSpaceSettings.d.ts.map +1 -1
- package/lib/settings/ResetSpaceSettings.js.map +1 -1
- package/lib/settings/ResetTimeSettings.d.ts.map +1 -1
- package/lib/settings/ResetTimeSettings.js.map +1 -1
- package/lib/settings/ResetUpgradeSettings.d.ts.map +1 -1
- package/lib/settings/ResetUpgradeSettings.js.map +1 -1
- package/lib/settings/ResourcesSettings.d.ts.map +1 -1
- package/lib/settings/ResourcesSettings.js +1 -1
- package/lib/settings/ResourcesSettings.js.map +1 -1
- package/lib/settings/ScienceSettings.d.ts.map +1 -1
- package/lib/settings/ScienceSettings.js.map +1 -1
- package/lib/settings/Settings.d.ts.map +1 -1
- package/lib/settings/Settings.js.map +1 -1
- package/lib/settings/SpaceSettings.d.ts.map +1 -1
- package/lib/settings/SpaceSettings.js.map +1 -1
- package/lib/settings/StateSettings.d.ts.map +1 -1
- package/lib/settings/StateSettings.js.map +1 -1
- package/lib/settings/TechSettings.d.ts.map +1 -1
- package/lib/settings/TechSettings.js.map +1 -1
- package/lib/settings/TimeControlSettings.d.ts.map +1 -1
- package/lib/settings/TimeControlSettings.js.map +1 -1
- package/lib/settings/TimeSettings.d.ts.map +1 -1
- package/lib/settings/TimeSettings.js.map +1 -1
- package/lib/settings/TimeSkipHeatSettings.d.ts.map +1 -1
- package/lib/settings/TimeSkipHeatSettings.js.map +1 -1
- package/lib/settings/TimeSkipSettings.d.ts.map +1 -1
- package/lib/settings/TimeSkipSettings.js.map +1 -1
- package/lib/settings/TradeSettings.d.ts.map +1 -1
- package/lib/settings/TradeSettings.js +2 -2
- package/lib/settings/TradeSettings.js.map +1 -1
- package/lib/settings/UpgradeSettings.d.ts.map +1 -1
- package/lib/settings/UpgradeSettings.js.map +1 -1
- package/lib/settings/VillageSettings.d.ts.map +1 -1
- package/lib/settings/VillageSettings.js.map +1 -1
- package/lib/settings/WorkshopSettings.d.ts.map +1 -1
- package/lib/settings/WorkshopSettings.js.map +1 -1
- package/lib/tools/Log.d.ts +1 -1
- package/lib/tools/Log.d.ts.map +1 -1
- package/lib/tools/Log.js +4 -1
- package/lib/tools/Log.js.map +1 -1
- package/lib/types/game.d.ts +2 -2
- package/lib/types/game.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/village.d.ts.map +1 -1
- package/lib/ui/BonfireSettingsUi.d.ts +4 -5
- package/lib/ui/BonfireSettingsUi.d.ts.map +1 -1
- package/lib/ui/BonfireSettingsUi.js +100 -115
- package/lib/ui/BonfireSettingsUi.js.map +1 -1
- package/lib/ui/BuildSectionTools.d.ts +2 -26
- package/lib/ui/BuildSectionTools.d.ts.map +1 -1
- package/lib/ui/BuildSectionTools.js +50 -59
- package/lib/ui/BuildSectionTools.js.map +1 -1
- package/lib/ui/BuildingUpgradeSettingsUi.d.ts +2 -4
- package/lib/ui/BuildingUpgradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/BuildingUpgradeSettingsUi.js +16 -23
- package/lib/ui/BuildingUpgradeSettingsUi.js.map +1 -1
- package/lib/ui/EmbassySettingsUi.d.ts +4 -5
- package/lib/ui/EmbassySettingsUi.d.ts.map +1 -1
- package/lib/ui/EmbassySettingsUi.js +54 -67
- package/lib/ui/EmbassySettingsUi.js.map +1 -1
- package/lib/ui/EngineSettingsUi.d.ts +3 -3
- package/lib/ui/EngineSettingsUi.d.ts.map +1 -1
- package/lib/ui/EngineSettingsUi.js +11 -9
- package/lib/ui/EngineSettingsUi.js.map +1 -1
- package/lib/ui/InternalsUi.d.ts +2 -2
- package/lib/ui/InternalsUi.d.ts.map +1 -1
- package/lib/ui/InternalsUi.js +44 -54
- package/lib/ui/InternalsUi.js.map +1 -1
- package/lib/ui/LogFilterSettingsUi.d.ts +2 -4
- package/lib/ui/LogFilterSettingsUi.d.ts.map +1 -1
- package/lib/ui/LogFilterSettingsUi.js +24 -32
- package/lib/ui/LogFilterSettingsUi.js.map +1 -1
- package/lib/ui/MissionSettingsUi.d.ts +2 -4
- package/lib/ui/MissionSettingsUi.d.ts.map +1 -1
- package/lib/ui/MissionSettingsUi.js +15 -20
- package/lib/ui/MissionSettingsUi.js.map +1 -1
- package/lib/ui/PolicySettingsUi.d.ts +2 -4
- package/lib/ui/PolicySettingsUi.d.ts.map +1 -1
- package/lib/ui/PolicySettingsUi.js +15 -22
- package/lib/ui/PolicySettingsUi.js.map +1 -1
- package/lib/ui/ReligionSettingsUi.d.ts +4 -6
- package/lib/ui/ReligionSettingsUi.d.ts.map +1 -1
- package/lib/ui/ReligionSettingsUi.js +128 -152
- package/lib/ui/ReligionSettingsUi.js.map +1 -1
- package/lib/ui/ResetBonfireSettingsUi.d.ts +2 -2
- package/lib/ui/ResetBonfireSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetBonfireSettingsUi.js +33 -39
- package/lib/ui/ResetBonfireSettingsUi.js.map +1 -1
- package/lib/ui/ResetReligionSettingsUi.d.ts +2 -2
- package/lib/ui/ResetReligionSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetReligionSettingsUi.js +45 -54
- package/lib/ui/ResetReligionSettingsUi.js.map +1 -1
- package/lib/ui/ResetResourcesSettingsUi.d.ts +2 -2
- package/lib/ui/ResetResourcesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetResourcesSettingsUi.js +27 -34
- package/lib/ui/ResetResourcesSettingsUi.js.map +1 -1
- package/lib/ui/ResetSettingsUi.d.ts +2 -4
- package/lib/ui/ResetSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetSettingsUi.js +19 -24
- package/lib/ui/ResetSettingsUi.js.map +1 -1
- package/lib/ui/ResetSpaceSettingsUi.d.ts +2 -2
- package/lib/ui/ResetSpaceSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetSpaceSettingsUi.js +33 -42
- package/lib/ui/ResetSpaceSettingsUi.js.map +1 -1
- package/lib/ui/ResetTimeSettingsUi.d.ts +2 -2
- package/lib/ui/ResetTimeSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetTimeSettingsUi.js +35 -44
- package/lib/ui/ResetTimeSettingsUi.js.map +1 -1
- package/lib/ui/ResetUpgradesSettingsUi.d.ts +2 -2
- package/lib/ui/ResetUpgradesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResetUpgradesSettingsUi.js +12 -12
- package/lib/ui/ResetUpgradesSettingsUi.js.map +1 -1
- package/lib/ui/ResourcesSettingsUi.d.ts +2 -4
- package/lib/ui/ResourcesSettingsUi.d.ts.map +1 -1
- package/lib/ui/ResourcesSettingsUi.js +18 -22
- package/lib/ui/ResourcesSettingsUi.js.map +1 -1
- package/lib/ui/ScienceSettingsUi.d.ts +2 -5
- package/lib/ui/ScienceSettingsUi.d.ts.map +1 -1
- package/lib/ui/ScienceSettingsUi.js +26 -45
- package/lib/ui/ScienceSettingsUi.js.map +1 -1
- package/lib/ui/SpaceSettingsUi.d.ts +4 -5
- package/lib/ui/SpaceSettingsUi.d.ts.map +1 -1
- package/lib/ui/SpaceSettingsUi.js +47 -58
- package/lib/ui/SpaceSettingsUi.js.map +1 -1
- package/lib/ui/StateManagementUi.d.ts +2 -3
- package/lib/ui/StateManagementUi.d.ts.map +1 -1
- package/lib/ui/StateManagementUi.js +172 -179
- package/lib/ui/StateManagementUi.js.map +1 -1
- package/lib/ui/TechSettingsUi.d.ts +4 -5
- package/lib/ui/TechSettingsUi.d.ts.map +1 -1
- package/lib/ui/TechSettingsUi.js +56 -74
- package/lib/ui/TechSettingsUi.js.map +1 -1
- package/lib/ui/TimeControlSettingsUi.d.ts +3 -4
- package/lib/ui/TimeControlSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeControlSettingsUi.js +27 -39
- package/lib/ui/TimeControlSettingsUi.js.map +1 -1
- package/lib/ui/TimeSettingsUi.d.ts +4 -5
- package/lib/ui/TimeSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSettingsUi.js +58 -65
- package/lib/ui/TimeSettingsUi.js.map +1 -1
- package/lib/ui/TimeSkipHeatSettingsUi.d.ts +4 -5
- package/lib/ui/TimeSkipHeatSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSkipHeatSettingsUi.js +33 -49
- package/lib/ui/TimeSkipHeatSettingsUi.js.map +1 -1
- package/lib/ui/TimeSkipSettingsUi.d.ts +2 -4
- package/lib/ui/TimeSkipSettingsUi.d.ts.map +1 -1
- package/lib/ui/TimeSkipSettingsUi.js +78 -106
- package/lib/ui/TimeSkipSettingsUi.js.map +1 -1
- package/lib/ui/TradeSettingsUi.d.ts +4 -5
- package/lib/ui/TradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/TradeSettingsUi.js +113 -128
- package/lib/ui/TradeSettingsUi.js.map +1 -1
- package/lib/ui/UpgradeSettingsUi.d.ts +4 -5
- package/lib/ui/UpgradeSettingsUi.d.ts.map +1 -1
- package/lib/ui/UpgradeSettingsUi.js +55 -71
- package/lib/ui/UpgradeSettingsUi.js.map +1 -1
- package/lib/ui/UserInterface.d.ts +4 -2
- package/lib/ui/UserInterface.d.ts.map +1 -1
- package/lib/ui/UserInterface.js +38 -21
- package/lib/ui/UserInterface.js.map +1 -1
- package/lib/ui/VillageSettingsUi.d.ts +2 -4
- package/lib/ui/VillageSettingsUi.d.ts.map +1 -1
- package/lib/ui/VillageSettingsUi.js +94 -112
- package/lib/ui/VillageSettingsUi.js.map +1 -1
- package/lib/ui/WorkshopSettingsUi.d.ts +4 -5
- package/lib/ui/WorkshopSettingsUi.d.ts.map +1 -1
- package/lib/ui/WorkshopSettingsUi.js +89 -110
- package/lib/ui/WorkshopSettingsUi.js.map +1 -1
- package/lib/ui/components/Button.d.ts +9 -9
- package/lib/ui/components/Button.d.ts.map +1 -1
- package/lib/ui/components/Button.js +31 -26
- package/lib/ui/components/Button.js.map +1 -1
- package/lib/ui/components/ButtonListItem.d.ts +4 -4
- package/lib/ui/components/ButtonListItem.d.ts.map +1 -1
- package/lib/ui/components/ButtonListItem.js +2 -7
- package/lib/ui/components/ButtonListItem.js.map +1 -1
- package/lib/ui/components/CollapsiblePanel.d.ts +15 -12
- package/lib/ui/components/CollapsiblePanel.d.ts.map +1 -1
- package/lib/ui/components/CollapsiblePanel.js +42 -26
- package/lib/ui/components/CollapsiblePanel.js.map +1 -1
- package/lib/ui/components/Container.d.ts +6 -2
- package/lib/ui/components/Container.d.ts.map +1 -1
- package/lib/ui/components/Container.js +5 -3
- package/lib/ui/components/Container.js.map +1 -1
- package/lib/ui/components/CyclesList.d.ts +7 -8
- package/lib/ui/components/CyclesList.d.ts.map +1 -1
- package/lib/ui/components/CyclesList.js +34 -27
- package/lib/ui/components/CyclesList.js.map +1 -1
- package/lib/ui/components/Delimiter.d.ts +2 -2
- package/lib/ui/components/Delimiter.d.ts.map +1 -1
- package/lib/ui/components/Delimiter.js +5 -2
- package/lib/ui/components/Delimiter.js.map +1 -1
- package/lib/ui/components/Dialog.d.ts +13 -6
- package/lib/ui/components/Dialog.d.ts.map +1 -1
- package/lib/ui/components/Dialog.js +65 -40
- package/lib/ui/components/Dialog.js.map +1 -1
- package/lib/ui/components/ExplainerListItem.d.ts +4 -2
- package/lib/ui/components/ExplainerListItem.d.ts.map +1 -1
- package/lib/ui/components/ExplainerListItem.js +6 -4
- package/lib/ui/components/ExplainerListItem.js.map +1 -1
- package/lib/ui/components/Fieldset.d.ts +5 -4
- package/lib/ui/components/Fieldset.d.ts.map +1 -1
- package/lib/ui/components/Fieldset.js +5 -3
- package/lib/ui/components/Fieldset.js.map +1 -1
- package/lib/ui/components/HeaderListItem.d.ts +5 -3
- package/lib/ui/components/HeaderListItem.d.ts.map +1 -1
- package/lib/ui/components/HeaderListItem.js +5 -3
- package/lib/ui/components/HeaderListItem.js.map +1 -1
- package/lib/ui/components/IconButton.d.ts +8 -7
- package/lib/ui/components/IconButton.d.ts.map +1 -1
- package/lib/ui/components/IconButton.js +23 -19
- package/lib/ui/components/IconButton.js.map +1 -1
- package/lib/ui/components/IconSettingsPanel.d.ts +5 -4
- package/lib/ui/components/IconSettingsPanel.d.ts.map +1 -1
- package/lib/ui/components/IconSettingsPanel.js +4 -2
- package/lib/ui/components/IconSettingsPanel.js.map +1 -1
- package/lib/ui/components/Input.d.ts +5 -3
- package/lib/ui/components/Input.d.ts.map +1 -1
- package/lib/ui/components/Input.js +5 -3
- package/lib/ui/components/Input.js.map +1 -1
- package/lib/ui/components/LabelListItem.d.ts +10 -7
- package/lib/ui/components/LabelListItem.d.ts.map +1 -1
- package/lib/ui/components/LabelListItem.js +21 -10
- package/lib/ui/components/LabelListItem.js.map +1 -1
- package/lib/ui/components/ListItem.d.ts +8 -6
- package/lib/ui/components/ListItem.d.ts.map +1 -1
- package/lib/ui/components/ListItem.js +5 -3
- package/lib/ui/components/ListItem.js.map +1 -1
- package/lib/ui/components/OptionsListItem.d.ts +6 -6
- package/lib/ui/components/OptionsListItem.d.ts.map +1 -1
- package/lib/ui/components/OptionsListItem.js +17 -12
- package/lib/ui/components/OptionsListItem.js.map +1 -1
- package/lib/ui/components/Paragraph.d.ts +6 -2
- package/lib/ui/components/Paragraph.d.ts.map +1 -1
- package/lib/ui/components/Paragraph.js +5 -3
- package/lib/ui/components/Paragraph.js.map +1 -1
- package/lib/ui/components/RadioItem.d.ts +9 -8
- package/lib/ui/components/RadioItem.d.ts.map +1 -1
- package/lib/ui/components/RadioItem.js +13 -9
- package/lib/ui/components/RadioItem.js.map +1 -1
- package/lib/ui/components/SeasonsList.d.ts +7 -6
- package/lib/ui/components/SeasonsList.d.ts.map +1 -1
- package/lib/ui/components/SeasonsList.js +20 -13
- package/lib/ui/components/SeasonsList.js.map +1 -1
- package/lib/ui/components/SettingLimitedListItem.d.ts +8 -8
- package/lib/ui/components/SettingLimitedListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedListItem.js +8 -9
- package/lib/ui/components/SettingLimitedListItem.js.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts +8 -7
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.js +13 -12
- package/lib/ui/components/SettingLimitedTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingListItem.d.ts +11 -12
- package/lib/ui/components/SettingListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingListItem.js +38 -38
- package/lib/ui/components/SettingListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxListItem.d.ts +8 -8
- package/lib/ui/components/SettingMaxListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxListItem.js +13 -11
- package/lib/ui/components/SettingMaxListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts +11 -8
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.js +21 -16
- package/lib/ui/components/SettingMaxTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.d.ts +9 -8
- package/lib/ui/components/SettingTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.js +16 -13
- package/lib/ui/components/SettingTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingsList.d.ts +12 -11
- package/lib/ui/components/SettingsList.d.ts.map +1 -1
- package/lib/ui/components/SettingsList.js +14 -16
- package/lib/ui/components/SettingsList.js.map +1 -1
- package/lib/ui/components/SettingsPanel.d.ts +9 -8
- package/lib/ui/components/SettingsPanel.d.ts.map +1 -1
- package/lib/ui/components/SettingsPanel.js +10 -10
- package/lib/ui/components/SettingsPanel.js.map +1 -1
- package/lib/ui/components/TextButton.d.ts +7 -7
- package/lib/ui/components/TextButton.d.ts.map +1 -1
- package/lib/ui/components/TextButton.js +17 -13
- package/lib/ui/components/TextButton.js.map +1 -1
- package/lib/ui/components/ToolbarListItem.d.ts +6 -5
- package/lib/ui/components/ToolbarListItem.d.ts.map +1 -1
- package/lib/ui/components/ToolbarListItem.js +7 -12
- package/lib/ui/components/ToolbarListItem.js.map +1 -1
- package/lib/ui/components/UiComponent.d.ts +31 -19
- package/lib/ui/components/UiComponent.d.ts.map +1 -1
- package/lib/ui/components/UiComponent.js +84 -19
- package/lib/ui/components/UiComponent.js.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.d.ts +10 -9
- package/lib/ui/components/WorkshopCraftListItem.d.ts.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.js +20 -21
- package/lib/ui/components/WorkshopCraftListItem.js.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.d.ts +5 -3
- package/lib/ui/components/buttons/ConsumeButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.js +23 -30
- package/lib/ui/components/buttons/ConsumeButton.js.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.d.ts +6 -3
- package/lib/ui/components/buttons/ExpandoButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.js +20 -17
- package/lib/ui/components/buttons/ExpandoButton.js.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.d.ts +8 -8
- package/lib/ui/components/buttons/LimitedButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.js +27 -21
- package/lib/ui/components/buttons/LimitedButton.js.map +1 -1
- package/lib/ui/components/buttons/MaxButton.d.ts +5 -5
- package/lib/ui/components/buttons/MaxButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/MaxButton.js +5 -7
- package/lib/ui/components/buttons/MaxButton.js.map +1 -1
- package/lib/ui/components/buttons/PaddingButton.d.ts +4 -2
- package/lib/ui/components/buttons/PaddingButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/PaddingButton.js +5 -3
- package/lib/ui/components/buttons/PaddingButton.js.map +1 -1
- package/lib/ui/components/buttons/StockButton.d.ts +5 -3
- package/lib/ui/components/buttons/StockButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/StockButton.js +32 -40
- package/lib/ui/components/buttons/StockButton.js.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.d.ts +6 -6
- package/lib/ui/components/buttons/TriggerButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.js +16 -20
- package/lib/ui/components/buttons/TriggerButton.js.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.d.ts +6 -6
- package/lib/ui/components/buttons-text/BuyButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.js +23 -28
- package/lib/ui/components/buttons-text/BuyButton.js.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.d.ts +6 -6
- package/lib/ui/components/buttons-text/SellButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.js +23 -30
- package/lib/ui/components/buttons-text/SellButton.js.map +1 -1
- package/output/kitten-scientists.inject.js +7562 -7675
- package/package.json +7 -5
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
2
1
|
import type { Setting } from "../../settings/Settings.js";
|
|
3
2
|
import { LabelListItem, type LabelListItemOptions } from "./LabelListItem.js";
|
|
4
|
-
import type { UiComponent
|
|
5
|
-
export type SettingListItemOptions
|
|
3
|
+
import type { UiComponent } from "./UiComponent.js";
|
|
4
|
+
export type SettingListItemOptions = ThisType<SettingListItem> & LabelListItemOptions & {
|
|
6
5
|
/**
|
|
7
6
|
* Will be invoked when the user checks the checkbox.
|
|
8
7
|
*/
|
|
9
|
-
readonly onCheck
|
|
8
|
+
readonly onCheck?: (isBatchProcess?: boolean) => void | Promise<void>;
|
|
10
9
|
/**
|
|
11
10
|
* Will be invoked when the user unchecks the checkbox.
|
|
12
11
|
*/
|
|
13
|
-
readonly onUnCheck
|
|
12
|
+
readonly onUnCheck?: (isBatchProcess?: boolean) => void | Promise<void>;
|
|
14
13
|
/**
|
|
15
14
|
* Should the user be prevented from changing the value of the input?
|
|
16
15
|
*/
|
|
17
|
-
readonly readOnly
|
|
16
|
+
readonly readOnly?: boolean;
|
|
18
17
|
};
|
|
19
|
-
export declare class SettingListItem<TSetting extends Setting = Setting
|
|
20
|
-
|
|
18
|
+
export declare class SettingListItem<TSetting extends Setting = Setting> extends LabelListItem {
|
|
19
|
+
readonly options: SettingListItemOptions;
|
|
21
20
|
readonly setting: TSetting;
|
|
22
21
|
readonly checkbox?: JQuery;
|
|
23
22
|
readOnly: boolean;
|
|
@@ -30,9 +29,9 @@ export declare class SettingListItem<TSetting extends Setting = Setting, TOption
|
|
|
30
29
|
* @param setting The setting this element is linked to.
|
|
31
30
|
* @param options Options for this list item.
|
|
32
31
|
*/
|
|
33
|
-
constructor(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
constructor(parent: UiComponent, setting: TSetting, label: string, options?: SettingListItemOptions);
|
|
33
|
+
toString(): string;
|
|
34
|
+
check(isBatchProcess?: boolean): Promise<void>;
|
|
35
|
+
uncheck(isBatchProcess?: boolean): Promise<void>;
|
|
37
36
|
}
|
|
38
37
|
//# sourceMappingURL=SettingListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingListItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingListItem.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,eAAe,CAAC,GAC5D,oBAAoB,GAAG;IACrB;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExE;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEJ,qBAAa,eAAe,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO,CAAE,SAAQ,aAAa;IACpF,SAAiB,OAAO,EAAE,sBAAsB,CAAC;IACjD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;;;OAQG;gBAED,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,sBAAsB;IAoDlC,QAAQ,IAAI,MAAM;IAIZ,KAAK,CAAC,cAAc,UAAQ;IAM5B,OAAO,CAAC,cAAc,UAAQ;CAKrC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isNil } from "@oliversalzburg/js-utils/data/nil.js";
|
|
2
|
+
import { redirectErrorsToConsole } from "@oliversalzburg/js-utils/errors/console.js";
|
|
2
3
|
import { LabelListItem } from "./LabelListItem.js";
|
|
3
4
|
import { default as styles, default as stylesSettingListItem } from "./SettingListItem.module.css";
|
|
4
5
|
export class SettingListItem extends LabelListItem {
|
|
5
6
|
setting;
|
|
6
7
|
checkbox;
|
|
7
8
|
readOnly;
|
|
8
|
-
static #nextId = 0;
|
|
9
9
|
/**
|
|
10
10
|
* Construct a new setting element.
|
|
11
11
|
* This is a simple checkbox with a label.
|
|
@@ -15,62 +15,62 @@ export class SettingListItem extends LabelListItem {
|
|
|
15
15
|
* @param setting The setting this element is linked to.
|
|
16
16
|
* @param options Options for this list item.
|
|
17
17
|
*/
|
|
18
|
-
constructor(
|
|
19
|
-
super(
|
|
18
|
+
constructor(parent, setting, label, options) {
|
|
19
|
+
super(parent, label, {
|
|
20
|
+
...options,
|
|
21
|
+
onRefresh: () => {
|
|
22
|
+
if (this.setting.enabled) {
|
|
23
|
+
this.element.addClass(styles.checked);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this.element.removeClass(styles.checked);
|
|
27
|
+
}
|
|
28
|
+
if (this.readOnly) {
|
|
29
|
+
this.element.addClass(stylesSettingListItem.readonly);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.element.removeClass(stylesSettingListItem.readonly);
|
|
33
|
+
}
|
|
34
|
+
if (!isNil(this.checkbox)) {
|
|
35
|
+
this.checkbox.prop("checked", this.setting.enabled);
|
|
36
|
+
this.checkbox.prop("disabled", this.readOnly);
|
|
37
|
+
}
|
|
38
|
+
options?.onRefresh?.();
|
|
39
|
+
},
|
|
40
|
+
});
|
|
20
41
|
this.element.addClass(styles.setting);
|
|
21
|
-
const id = `ks-setting${
|
|
42
|
+
const id = `ks-setting${this.componentId}`;
|
|
22
43
|
const checkbox = $("<input/>", {
|
|
23
44
|
id,
|
|
24
45
|
type: "checkbox",
|
|
25
46
|
}).addClass(styles.checkbox);
|
|
26
|
-
this.readOnly = options
|
|
47
|
+
this.readOnly = options?.readOnly ?? false;
|
|
27
48
|
checkbox.prop("disabled", this.readOnly);
|
|
28
|
-
checkbox.on("change", () => {
|
|
49
|
+
checkbox.on("change", (event) => {
|
|
29
50
|
if (checkbox.is(":checked") && !setting.enabled) {
|
|
30
|
-
|
|
31
|
-
options.onCheck?.();
|
|
32
|
-
this.refreshUi();
|
|
51
|
+
this.check().catch(redirectErrorsToConsole(console));
|
|
33
52
|
}
|
|
34
53
|
else if (!checkbox.is(":checked") && setting.enabled) {
|
|
35
|
-
|
|
36
|
-
options.onUnCheck?.();
|
|
37
|
-
this.refreshUi();
|
|
54
|
+
this.uncheck().catch(redirectErrorsToConsole(console));
|
|
38
55
|
}
|
|
39
56
|
});
|
|
40
57
|
this.elementLabel.before(checkbox);
|
|
41
58
|
this.elementLabel.prop("for", id);
|
|
42
59
|
this.checkbox = checkbox;
|
|
43
60
|
this.setting = setting;
|
|
44
|
-
this.addChildren(options.children);
|
|
45
61
|
}
|
|
46
|
-
|
|
62
|
+
toString() {
|
|
63
|
+
return `[${SettingListItem.name}#${this.componentId}]: '${this.elementLabel.text()}'`;
|
|
64
|
+
}
|
|
65
|
+
async check(isBatchProcess = false) {
|
|
47
66
|
this.setting.enabled = true;
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
67
|
+
await this.options?.onCheck?.call(isBatchProcess);
|
|
68
|
+
this.requestRefresh(true);
|
|
50
69
|
}
|
|
51
|
-
uncheck(isBatchProcess = false) {
|
|
70
|
+
async uncheck(isBatchProcess = false) {
|
|
52
71
|
this.setting.enabled = false;
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
55
|
-
}
|
|
56
|
-
refreshUi() {
|
|
57
|
-
super.refreshUi();
|
|
58
|
-
if (this.setting.enabled) {
|
|
59
|
-
this.element.addClass(styles.checked);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
this.element.removeClass(styles.checked);
|
|
63
|
-
}
|
|
64
|
-
if (this.readOnly) {
|
|
65
|
-
this.element.addClass(stylesSettingListItem.readonly);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
this.element.removeClass(stylesSettingListItem.readonly);
|
|
69
|
-
}
|
|
70
|
-
if (!isNil(this.checkbox)) {
|
|
71
|
-
this.checkbox.prop("checked", this.setting.enabled);
|
|
72
|
-
this.checkbox.prop("disabled", this.readOnly);
|
|
73
|
-
}
|
|
72
|
+
await this.options.onUnCheck?.call(isBatchProcess);
|
|
73
|
+
this.requestRefresh(true);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
//# sourceMappingURL=SettingListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingListItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"SettingListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingListItem.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
2
1
|
import type { SettingMax } from "../../settings/Settings.js";
|
|
2
|
+
import { MaxButton } from "./buttons/MaxButton.js";
|
|
3
3
|
import { SettingListItem, type SettingListItemOptions } from "./SettingListItem.js";
|
|
4
4
|
import type { UiComponent } from "./UiComponent.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly
|
|
8
|
-
readonly onSetMax: (subject: SettingMaxListItem) => void;
|
|
5
|
+
export type SettingMaxListItemOptions = ThisType<SettingMaxListItem> & SettingListItemOptions & {
|
|
6
|
+
readonly onRefreshMax?: () => void;
|
|
7
|
+
readonly onSetMax: () => void;
|
|
9
8
|
};
|
|
10
|
-
export declare class SettingMaxListItem
|
|
9
|
+
export declare class SettingMaxListItem extends SettingListItem<SettingMax> {
|
|
10
|
+
readonly options: SettingMaxListItemOptions;
|
|
11
11
|
readonly maxButton: MaxButton;
|
|
12
12
|
/**
|
|
13
13
|
* Create a UI element for a setting that can have a maximum.
|
|
@@ -19,7 +19,7 @@ export declare class SettingMaxListItem<TOptions extends SettingListItemOptions<
|
|
|
19
19
|
* @param setting The setting model.
|
|
20
20
|
* @param options Options for the list item.
|
|
21
21
|
*/
|
|
22
|
-
constructor(
|
|
23
|
-
|
|
22
|
+
constructor(parent: UiComponent, setting: SettingMax, label: string, options: SettingMaxListItemOptions);
|
|
23
|
+
toString(): string;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=SettingMaxListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingMaxListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxListItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SettingMaxListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxListItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,kBAAkB,CAAC,GAClE,sBAAsB,GAAG;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEJ,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,UAAU,CAAC;IACjE,SAAiB,OAAO,EAAE,yBAAyB,CAAC;IACpD,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAE9B;;;;;;;;;OASG;gBAED,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,yBAAyB;IAkBpC,QAAQ,IAAI,MAAM;CAGnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { MaxButton } from "./buttons/MaxButton.js";
|
|
1
2
|
import { Container } from "./Container.js";
|
|
2
3
|
import stylesLabelListItem from "./LabelListItem.module.css";
|
|
3
4
|
import { SettingListItem } from "./SettingListItem.js";
|
|
4
|
-
import { MaxButton } from "./buttons/MaxButton.js";
|
|
5
5
|
export class SettingMaxListItem extends SettingListItem {
|
|
6
6
|
maxButton;
|
|
7
7
|
/**
|
|
@@ -14,21 +14,23 @@ export class SettingMaxListItem extends SettingListItem {
|
|
|
14
14
|
* @param setting The setting model.
|
|
15
15
|
* @param options Options for the list item.
|
|
16
16
|
*/
|
|
17
|
-
constructor(
|
|
18
|
-
super(
|
|
19
|
-
this.maxButton = new MaxButton(
|
|
17
|
+
constructor(parent, setting, label, options) {
|
|
18
|
+
super(parent, setting, label, options);
|
|
19
|
+
this.maxButton = new MaxButton(parent, setting, {
|
|
20
20
|
border: false,
|
|
21
|
-
onClick:
|
|
22
|
-
|
|
21
|
+
onClick: () => {
|
|
22
|
+
options.onSetMax.call(this);
|
|
23
|
+
this.requestRefresh();
|
|
24
|
+
},
|
|
25
|
+
onRefresh: options?.onRefreshMax ? () => options.onRefreshMax?.call(this) : undefined,
|
|
23
26
|
});
|
|
24
|
-
this.
|
|
25
|
-
new Container(
|
|
27
|
+
this.addChildrenHead([
|
|
28
|
+
new Container(parent, { classes: [stylesLabelListItem.fillSpace] }),
|
|
26
29
|
this.maxButton,
|
|
27
30
|
]);
|
|
28
31
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.maxButton.refreshUi();
|
|
32
|
+
toString() {
|
|
33
|
+
return `[${SettingMaxListItem.name}#${this.componentId}]: '${this.elementLabel.text()}'`;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
//# sourceMappingURL=SettingMaxListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingMaxListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxListItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingMaxListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxListItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAA+B,MAAM,sBAAsB,CAAC;AASpF,MAAM,OAAO,kBAAmB,SAAQ,eAA2B;IAExD,SAAS,CAAY;IAE9B;;;;;;;;;OASG;IACH,YACE,MAAmB,EACnB,OAAmB,EACnB,KAAa,EACb,OAAkC;QAElC,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE;YAC9C,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,GAAG,EAAE;gBACZ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC5B,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,CAAC;YACD,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;SACtF,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,CAAC;YACnB,IAAI,SAAS,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC;YACnE,IAAI,CAAC,SAAS;SACf,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,kBAAkB,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
3
2
|
import type { SettingOptions, SettingTriggerMax } from "../../settings/Settings.js";
|
|
4
|
-
import { SettingListItem, type SettingListItemOptions } from "./SettingListItem.js";
|
|
5
|
-
import type { SettingListItemOptionsMax } from "./SettingMaxListItem.js";
|
|
6
|
-
import type { SettingListItemOptionsTrigger } from "./SettingTriggerListItem.js";
|
|
7
|
-
import type { UiComponent } from "./UiComponent.js";
|
|
8
3
|
import { MaxButton } from "./buttons/MaxButton.js";
|
|
9
4
|
import { TriggerButton } from "./buttons/TriggerButton.js";
|
|
10
|
-
|
|
5
|
+
import { SettingListItem, type SettingListItemOptions } from "./SettingListItem.js";
|
|
6
|
+
import type { SettingMaxListItemOptions } from "./SettingMaxListItem.js";
|
|
7
|
+
import type { SettingTriggerListItemOptions } from "./SettingTriggerListItem.js";
|
|
8
|
+
import type { UiComponent } from "./UiComponent.js";
|
|
9
|
+
export type SettingMaxTriggerListItemOptions = ThisType<SettingMaxTriggerListItem> & SettingListItemOptions & SettingMaxListItemOptions & SettingTriggerListItemOptions & {
|
|
10
|
+
readonly renderLabelTrigger?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare class SettingMaxTriggerListItem extends SettingListItem<SettingTriggerMax> {
|
|
13
|
+
readonly options: SettingMaxTriggerListItemOptions;
|
|
11
14
|
readonly maxButton: MaxButton;
|
|
12
15
|
readonly triggerButton: TriggerButton;
|
|
13
|
-
constructor(
|
|
14
|
-
|
|
16
|
+
constructor(parent: UiComponent, setting: SettingTriggerMax, locale: SettingOptions<SupportedLocale>, label: string, options: SettingMaxTriggerListItemOptions);
|
|
17
|
+
toString(): string;
|
|
15
18
|
}
|
|
16
19
|
//# sourceMappingURL=SettingMaxTriggerListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingMaxTriggerListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxTriggerListItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SettingMaxTriggerListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxTriggerListItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC,yBAAyB,CAAC,GAChF,sBAAsB,GACtB,yBAAyB,GACzB,6BAA6B,GAAG;IAC9B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEJ,qBAAa,yBAA0B,SAAQ,eAAe,CAAC,iBAAiB,CAAC;IAC/E,SAAiB,OAAO,EAAE,gCAAgC,CAAC;IAC3D,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;gBAGpC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC,EACvC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,gCAAgC;IAgC3C,QAAQ,IAAI,MAAM;CAGnB"}
|
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
import stylesButton from "./Button.module.css";
|
|
2
|
+
import { MaxButton } from "./buttons/MaxButton.js";
|
|
3
|
+
import { TriggerButton } from "./buttons/TriggerButton.js";
|
|
2
4
|
import { Container } from "./Container.js";
|
|
3
5
|
import stylesLabelListItem from "./LabelListItem.module.css";
|
|
4
6
|
import { SettingListItem } from "./SettingListItem.js";
|
|
5
|
-
import { MaxButton } from "./buttons/MaxButton.js";
|
|
6
|
-
import { TriggerButton } from "./buttons/TriggerButton.js";
|
|
7
7
|
export class SettingMaxTriggerListItem extends SettingListItem {
|
|
8
8
|
maxButton;
|
|
9
9
|
triggerButton;
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
12
|
-
this.maxButton = new MaxButton(
|
|
10
|
+
constructor(parent, setting, locale, label, options) {
|
|
11
|
+
super(parent, setting, label, options);
|
|
12
|
+
this.maxButton = new MaxButton(parent, setting, {
|
|
13
13
|
alignment: "right",
|
|
14
14
|
border: false,
|
|
15
15
|
classes: [stylesButton.headAction],
|
|
16
|
-
onClick:
|
|
17
|
-
|
|
16
|
+
onClick: () => {
|
|
17
|
+
options.onSetMax.call(this);
|
|
18
|
+
this.requestRefresh();
|
|
19
|
+
},
|
|
20
|
+
onRefresh: options?.onRefreshMax ? () => options.onRefreshMax?.call(this) : undefined,
|
|
18
21
|
});
|
|
19
|
-
this.triggerButton = new TriggerButton(
|
|
22
|
+
this.triggerButton = new TriggerButton(parent, setting, locale, {
|
|
20
23
|
border: false,
|
|
21
24
|
classes: [stylesButton.lastHeadAction],
|
|
22
|
-
onClick:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
onClick: async () => {
|
|
26
|
+
await options.onSetTrigger.call(this);
|
|
27
|
+
this.requestRefresh();
|
|
28
|
+
},
|
|
29
|
+
onRefresh: options?.onRefreshTrigger ? () => options.onRefreshTrigger?.call(this) : undefined,
|
|
30
|
+
renderLabel: options?.renderLabelTrigger ?? true,
|
|
26
31
|
});
|
|
27
|
-
this.
|
|
28
|
-
new Container(
|
|
32
|
+
this.addChildrenHead([
|
|
33
|
+
new Container(parent, { classes: [stylesLabelListItem.fillSpace] }),
|
|
29
34
|
this.maxButton,
|
|
30
35
|
this.triggerButton,
|
|
31
36
|
]);
|
|
32
37
|
}
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
toString() {
|
|
39
|
+
return `[${SettingMaxTriggerListItem.name}#${this.componentId}]: '${this.elementLabel.text()}'`;
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
//# sourceMappingURL=SettingMaxTriggerListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingMaxTriggerListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxTriggerListItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingMaxTriggerListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingMaxTriggerListItem.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAA+B,MAAM,sBAAsB,CAAC;AAYpF,MAAM,OAAO,yBAA0B,SAAQ,eAAkC;IAEtE,SAAS,CAAY;IACrB,aAAa,CAAgB;IAEtC,YACE,MAAmB,EACnB,OAA0B,EAC1B,MAAuC,EACvC,KAAa,EACb,OAAyC;QAEzC,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE;YAC9C,SAAS,EAAE,OAAO;YAClB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC;YAClC,OAAO,EAAE,GAAG,EAAE;gBACZ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC5B,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,CAAC;YACD,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;SACtF,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;YAC9D,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,CAAC,YAAY,CAAC,cAAc,CAAC;YACtC,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,MAAM,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtC,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,CAAC;YACD,SAAS,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;YAC7F,WAAW,EAAE,OAAO,EAAE,kBAAkB,IAAI,IAAI;SACjD,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC;YACnB,IAAI,SAAS,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC;YACnE,IAAI,CAAC,SAAS;YACd,IAAI,CAAC,aAAa;SACnB,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,yBAAyB,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC;IAClG,CAAC;CACF"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { SupportedLocale } from "../../Engine.js";
|
|
2
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
3
2
|
import type { SettingOptions, SettingThreshold, SettingTrigger } from "../../settings/Settings.js";
|
|
3
|
+
import { TriggerButton } from "./buttons/TriggerButton.js";
|
|
4
4
|
import { SettingListItem, type SettingListItemOptions } from "./SettingListItem.js";
|
|
5
5
|
import type { UiComponent } from "./UiComponent.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
6
|
+
export type SettingTriggerListItemOptions = ThisType<SettingTriggerListItem> & SettingListItemOptions & {
|
|
7
|
+
readonly onRefreshTrigger?: () => void | Promise<void>;
|
|
8
|
+
readonly onSetTrigger: () => void | Promise<void>;
|
|
9
|
+
readonly renderLabelTrigger?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare class SettingTriggerListItem
|
|
11
|
+
export declare class SettingTriggerListItem extends SettingListItem {
|
|
12
|
+
readonly options: SettingTriggerListItemOptions;
|
|
12
13
|
readonly triggerButton: TriggerButton;
|
|
13
|
-
constructor(
|
|
14
|
-
|
|
14
|
+
constructor(parent: UiComponent, setting: SettingThreshold | SettingTrigger, locale: SettingOptions<SupportedLocale>, label: string, options: SettingTriggerListItemOptions);
|
|
15
|
+
toString(): string;
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=SettingTriggerListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingTriggerListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingTriggerListItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SettingTriggerListItem.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingTriggerListItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAAC,sBAAsB,CAAC,GAC1E,sBAAsB,GAAG;IACvB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,QAAQ,CAAC,YAAY,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEJ,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,SAAiB,OAAO,EAAE,6BAA6B,CAAC;IACxD,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;gBAGpC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,gBAAgB,GAAG,cAAc,EAC1C,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC,EACvC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,6BAA6B;IAoBxC,QAAQ,IAAI,MAAM;CAGnB"}
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
+
import { TriggerButton } from "./buttons/TriggerButton.js";
|
|
1
2
|
import { Container } from "./Container.js";
|
|
2
3
|
import stylesLabelListItem from "./LabelListItem.module.css";
|
|
3
4
|
import { SettingListItem } from "./SettingListItem.js";
|
|
4
|
-
import { TriggerButton } from "./buttons/TriggerButton.js";
|
|
5
5
|
export class SettingTriggerListItem extends SettingListItem {
|
|
6
6
|
triggerButton;
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
9
|
-
this.triggerButton = new TriggerButton(
|
|
7
|
+
constructor(parent, setting, locale, label, options) {
|
|
8
|
+
super(parent, setting, label, options);
|
|
9
|
+
this.triggerButton = new TriggerButton(parent, setting, locale, {
|
|
10
10
|
alignment: "right",
|
|
11
11
|
border: false,
|
|
12
|
-
onClick:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
onClick: async () => {
|
|
13
|
+
await options.onSetTrigger.call(this);
|
|
14
|
+
this.requestRefresh();
|
|
15
|
+
},
|
|
16
|
+
onRefresh: options?.onRefreshTrigger ? () => options.onRefreshTrigger?.call(this) : undefined,
|
|
17
|
+
renderLabel: options?.renderLabelTrigger ?? true,
|
|
16
18
|
});
|
|
17
|
-
this.
|
|
18
|
-
|
|
19
|
+
this.addChildrenHead([
|
|
20
|
+
new Container(parent, { classes: [stylesLabelListItem.fillSpace] }),
|
|
21
|
+
this.triggerButton,
|
|
22
|
+
]);
|
|
19
23
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.triggerButton.refreshUi();
|
|
24
|
+
toString() {
|
|
25
|
+
return `[${SettingTriggerListItem.name}#${this.componentId}]: '${this.elementLabel.text()}'`;
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
//# sourceMappingURL=SettingTriggerListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingTriggerListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingTriggerListItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingTriggerListItem.js","sourceRoot":"","sources":["../../../source/ui/components/SettingTriggerListItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAA+B,MAAM,sBAAsB,CAAC;AAUpF,MAAM,OAAO,sBAAuB,SAAQ,eAAe;IAEhD,aAAa,CAAgB;IAEtC,YACE,MAAmB,EACnB,OAA0C,EAC1C,MAAuC,EACvC,KAAa,EACb,OAAsC;QAEtC,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;YAC9D,SAAS,EAAE,OAAO;YAClB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,MAAM,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtC,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,CAAC;YACD,SAAS,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;YAC7F,WAAW,EAAE,OAAO,EAAE,kBAAkB,IAAI,IAAI;SACjD,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,CAAC;YACnB,IAAI,SAAS,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC;YACnE,IAAI,CAAC,aAAa;SACnB,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,sBAAsB,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
2
1
|
import { IconButton } from "./IconButton.js";
|
|
3
|
-
import { UiComponent, type
|
|
4
|
-
export type SettingsListOptions
|
|
5
|
-
readonly hasEnableAll
|
|
6
|
-
readonly hasDisableAll
|
|
7
|
-
readonly onEnableAll
|
|
8
|
-
readonly onDisableAll
|
|
9
|
-
readonly onReset
|
|
2
|
+
import { UiComponent, type UiComponentOptions } from "./UiComponent.js";
|
|
3
|
+
export type SettingsListOptions = ThisType<SettingsList> & UiComponentOptions & {
|
|
4
|
+
readonly hasEnableAll?: boolean;
|
|
5
|
+
readonly hasDisableAll?: boolean;
|
|
6
|
+
readonly onEnableAll?: () => void;
|
|
7
|
+
readonly onDisableAll?: () => void;
|
|
8
|
+
readonly onReset?: () => void;
|
|
10
9
|
};
|
|
11
10
|
/**
|
|
12
11
|
* The `SettingsList` is a `<ul>` designed to host `SettingListItem` instances.
|
|
@@ -16,7 +15,8 @@ export type SettingsListOptions<TChild extends UiComponentInterface = UiComponen
|
|
|
16
15
|
*
|
|
17
16
|
* This construct is also sometimes referred to as an "items list" for historic reasons.
|
|
18
17
|
*/
|
|
19
|
-
export declare class SettingsList
|
|
18
|
+
export declare class SettingsList extends UiComponent {
|
|
19
|
+
readonly options: SettingsListOptions;
|
|
20
20
|
readonly element: JQuery;
|
|
21
21
|
readonly list: JQuery;
|
|
22
22
|
readonly disableAllButton: IconButton | undefined;
|
|
@@ -28,7 +28,8 @@ export declare class SettingsList<TOptions extends SettingsListOptions<UiCompone
|
|
|
28
28
|
* @param host A reference to the host.
|
|
29
29
|
* @param options Which tools should be available on the list?
|
|
30
30
|
*/
|
|
31
|
-
constructor(
|
|
32
|
-
|
|
31
|
+
constructor(parent: UiComponent, options?: SettingsListOptions);
|
|
32
|
+
toString(): string;
|
|
33
|
+
addChild(child: UiComponent): this;
|
|
33
34
|
}
|
|
34
35
|
//# sourceMappingURL=SettingsList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsList.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingsList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingsList.d.ts","sourceRoot":"","sources":["../../../source/ui/components/SettingsList.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC,GACtD,kBAAkB,GAAG;IACnB,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEJ;;;;;;;GAOG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,SAAiB,OAAO,EAAE,mBAAmB,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,gBAAgB,EAAE,UAAU,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,eAAe,EAAE,UAAU,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,CAAC;IAE7C;;;;;OAKG;gBACS,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,mBAAmB;IA6F9D,QAAQ,IAAI,MAAM;IAIT,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAM5C"}
|