@kitten-science/kitten-scientists 2.0.0-beta.10-20250402-4e11d20 → 2.0.0-beta.10-dev-2a02d77
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/KittenScientists.d.ts +1 -1
- package/lib/KittenScientists.d.ts.map +1 -1
- package/lib/KittenScientists.js +6 -6
- package/lib/KittenScientists.js.map +1 -1
- package/lib/ReligionManager.js +1 -1
- package/lib/ReligionManager.js.map +1 -1
- package/lib/TimeControlManager.js +2 -2
- package/lib/TimeControlManager.js.map +1 -1
- package/lib/TradeManager.d.ts.map +1 -1
- package/lib/TradeManager.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/ui/BonfireSettingsUi.d.ts +4 -5
- package/lib/ui/BonfireSettingsUi.d.ts.map +1 -1
- package/lib/ui/BonfireSettingsUi.js +109 -90
- package/lib/ui/BonfireSettingsUi.js.map +1 -1
- package/lib/ui/BuildSectionTools.d.ts +3 -13
- package/lib/ui/BuildSectionTools.d.ts.map +1 -1
- package/lib/ui/BuildSectionTools.js +52 -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 +13 -20
- 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 +48 -61
- package/lib/ui/EmbassySettingsUi.js.map +1 -1
- package/lib/ui/EngineSettingsUi.d.ts +2 -2
- package/lib/ui/EngineSettingsUi.d.ts.map +1 -1
- package/lib/ui/EngineSettingsUi.js +10 -8
- 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 +43 -53
- 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 +13 -18
- 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 +13 -20
- package/lib/ui/PolicySettingsUi.js.map +1 -1
- package/lib/ui/ReligionSettingsUi.d.ts +4 -5
- package/lib/ui/ReligionSettingsUi.d.ts.map +1 -1
- package/lib/ui/ReligionSettingsUi.js +108 -132
- 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 +30 -36
- 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 +42 -51
- 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 +24 -31
- 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 +14 -19
- 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 +30 -39
- 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 +32 -41
- 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 +16 -20
- package/lib/ui/ResourcesSettingsUi.js.map +1 -1
- package/lib/ui/ScienceSettingsUi.d.ts +2 -4
- package/lib/ui/ScienceSettingsUi.d.ts.map +1 -1
- package/lib/ui/ScienceSettingsUi.js +16 -35
- 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 +43 -51
- package/lib/ui/SpaceSettingsUi.js.map +1 -1
- package/lib/ui/StateManagementUi.d.ts +2 -2
- package/lib/ui/StateManagementUi.d.ts.map +1 -1
- package/lib/ui/StateManagementUi.js +162 -169
- 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 +51 -69
- 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 +22 -34
- 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 +55 -62
- 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 +28 -44
- 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 +75 -103
- 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 +102 -115
- 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 +50 -66
- package/lib/ui/UpgradeSettingsUi.js.map +1 -1
- package/lib/ui/UserInterface.d.ts +3 -0
- package/lib/ui/UserInterface.d.ts.map +1 -1
- package/lib/ui/UserInterface.js +37 -19
- 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 +87 -105
- 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 +82 -103
- package/lib/ui/WorkshopSettingsUi.js.map +1 -1
- package/lib/ui/components/Button.d.ts +9 -8
- package/lib/ui/components/Button.d.ts.map +1 -1
- package/lib/ui/components/Button.js +8 -6
- 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 -11
- package/lib/ui/components/CollapsiblePanel.d.ts.map +1 -1
- package/lib/ui/components/CollapsiblePanel.js +42 -25
- package/lib/ui/components/CollapsiblePanel.js.map +1 -1
- package/lib/ui/components/Container.d.ts +7 -2
- package/lib/ui/components/Container.d.ts.map +1 -1
- package/lib/ui/components/Container.js +6 -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 +3 -2
- package/lib/ui/components/Delimiter.d.ts.map +1 -1
- package/lib/ui/components/Delimiter.js +6 -2
- package/lib/ui/components/Delimiter.js.map +1 -1
- package/lib/ui/components/Dialog.d.ts +14 -6
- package/lib/ui/components/Dialog.d.ts.map +1 -1
- package/lib/ui/components/Dialog.js +66 -40
- package/lib/ui/components/Dialog.js.map +1 -1
- package/lib/ui/components/ExplainerListItem.d.ts +5 -2
- package/lib/ui/components/ExplainerListItem.d.ts.map +1 -1
- package/lib/ui/components/ExplainerListItem.js +7 -4
- package/lib/ui/components/ExplainerListItem.js.map +1 -1
- package/lib/ui/components/Fieldset.d.ts +6 -4
- package/lib/ui/components/Fieldset.d.ts.map +1 -1
- package/lib/ui/components/Fieldset.js +6 -3
- package/lib/ui/components/Fieldset.js.map +1 -1
- package/lib/ui/components/HeaderListItem.d.ts +6 -3
- package/lib/ui/components/HeaderListItem.d.ts.map +1 -1
- package/lib/ui/components/HeaderListItem.js +6 -3
- package/lib/ui/components/HeaderListItem.js.map +1 -1
- package/lib/ui/components/IconButton.d.ts +8 -6
- package/lib/ui/components/IconButton.d.ts.map +1 -1
- package/lib/ui/components/IconButton.js +6 -5
- 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 +6 -3
- package/lib/ui/components/Input.d.ts.map +1 -1
- package/lib/ui/components/Input.js +6 -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 +9 -6
- package/lib/ui/components/ListItem.d.ts.map +1 -1
- package/lib/ui/components/ListItem.js +6 -3
- package/lib/ui/components/ListItem.js.map +1 -1
- package/lib/ui/components/OptionsListItem.d.ts +6 -5
- package/lib/ui/components/OptionsListItem.d.ts.map +1 -1
- package/lib/ui/components/OptionsListItem.js +7 -5
- package/lib/ui/components/OptionsListItem.js.map +1 -1
- package/lib/ui/components/Paragraph.d.ts +7 -2
- package/lib/ui/components/Paragraph.d.ts.map +1 -1
- package/lib/ui/components/Paragraph.js +6 -3
- package/lib/ui/components/Paragraph.js.map +1 -1
- package/lib/ui/components/RadioItem.d.ts +9 -7
- package/lib/ui/components/RadioItem.d.ts.map +1 -1
- package/lib/ui/components/RadioItem.js +9 -7
- 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 +7 -7
- package/lib/ui/components/SettingLimitedListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedListItem.js +7 -8
- package/lib/ui/components/SettingLimitedListItem.js.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts +7 -6
- package/lib/ui/components/SettingLimitedTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingLimitedTriggerListItem.js +12 -11
- package/lib/ui/components/SettingLimitedTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingListItem.d.ts +11 -11
- package/lib/ui/components/SettingListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingListItem.js +16 -20
- package/lib/ui/components/SettingListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxListItem.d.ts +7 -7
- package/lib/ui/components/SettingMaxListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxListItem.js +12 -10
- package/lib/ui/components/SettingMaxListItem.js.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts +9 -6
- package/lib/ui/components/SettingMaxTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingMaxTriggerListItem.js +19 -14
- package/lib/ui/components/SettingMaxTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.d.ts +8 -7
- package/lib/ui/components/SettingTriggerListItem.d.ts.map +1 -1
- package/lib/ui/components/SettingTriggerListItem.js +15 -12
- package/lib/ui/components/SettingTriggerListItem.js.map +1 -1
- package/lib/ui/components/SettingsList.d.ts +13 -11
- package/lib/ui/components/SettingsList.d.ts.map +1 -1
- package/lib/ui/components/SettingsList.js +15 -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 -6
- package/lib/ui/components/TextButton.d.ts.map +1 -1
- package/lib/ui/components/TextButton.js +7 -5
- 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 +32 -18
- package/lib/ui/components/UiComponent.d.ts.map +1 -1
- package/lib/ui/components/UiComponent.js +50 -19
- package/lib/ui/components/UiComponent.js.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.d.ts +8 -7
- package/lib/ui/components/WorkshopCraftListItem.d.ts.map +1 -1
- package/lib/ui/components/WorkshopCraftListItem.js +17 -18
- package/lib/ui/components/WorkshopCraftListItem.js.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.d.ts +5 -2
- package/lib/ui/components/buttons/ConsumeButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ConsumeButton.js +19 -26
- package/lib/ui/components/buttons/ConsumeButton.js.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.d.ts +6 -2
- package/lib/ui/components/buttons/ExpandoButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/ExpandoButton.js +10 -9
- package/lib/ui/components/buttons/ExpandoButton.js.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.d.ts +8 -7
- package/lib/ui/components/buttons/LimitedButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/LimitedButton.js +20 -13
- 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 +5 -2
- package/lib/ui/components/buttons/PaddingButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/PaddingButton.js +6 -3
- package/lib/ui/components/buttons/PaddingButton.js.map +1 -1
- package/lib/ui/components/buttons/StockButton.d.ts +5 -2
- package/lib/ui/components/buttons/StockButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/StockButton.js +25 -32
- package/lib/ui/components/buttons/StockButton.js.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.d.ts +6 -5
- package/lib/ui/components/buttons/TriggerButton.d.ts.map +1 -1
- package/lib/ui/components/buttons/TriggerButton.js +11 -12
- package/lib/ui/components/buttons/TriggerButton.js.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.d.ts +6 -5
- package/lib/ui/components/buttons-text/BuyButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/BuyButton.js +19 -26
- package/lib/ui/components/buttons-text/BuyButton.js.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.d.ts +6 -5
- package/lib/ui/components/buttons-text/SellButton.d.ts.map +1 -1
- package/lib/ui/components/buttons-text/SellButton.js +19 -28
- package/lib/ui/components/buttons-text/SellButton.js.map +1 -1
- package/output/kitten-scientists.inject.js +2441 -2516
- package/package.json +6 -6
|
@@ -12,13 +12,9 @@ import { ExpandoButton } from "./buttons/ExpandoButton.js";
|
|
|
12
12
|
export class CollapsiblePanel extends UiComponent {
|
|
13
13
|
container;
|
|
14
14
|
element;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
expando;
|
|
16
|
+
head;
|
|
17
17
|
_mainChildVisible;
|
|
18
|
-
parent;
|
|
19
|
-
get expando() {
|
|
20
|
-
return this._expando;
|
|
21
|
-
}
|
|
22
18
|
get isExpanded() {
|
|
23
19
|
return this._mainChildVisible;
|
|
24
20
|
}
|
|
@@ -29,17 +25,14 @@ export class CollapsiblePanel extends UiComponent {
|
|
|
29
25
|
* @param head Another component to host in the head of the panel.
|
|
30
26
|
* @param options Options for this panel.
|
|
31
27
|
*/
|
|
32
|
-
constructor(
|
|
33
|
-
super(
|
|
34
|
-
this.
|
|
28
|
+
constructor(parent, head, options) {
|
|
29
|
+
super(parent, {});
|
|
30
|
+
this.head = head;
|
|
31
|
+
this.container = new Container(this);
|
|
35
32
|
this.container.element.addClass(stylesSettingListItem.panelContent);
|
|
36
|
-
this.children.add(this.container);
|
|
37
|
-
this._head = head;
|
|
38
|
-
this.children.add(head);
|
|
39
33
|
// The expando button for this panel.
|
|
40
|
-
const expando = new ExpandoButton(
|
|
41
|
-
|
|
42
|
-
this.toggle();
|
|
34
|
+
const expando = new ExpandoButton(parent, {
|
|
35
|
+
onClick: () => this.toggle(),
|
|
43
36
|
});
|
|
44
37
|
head.head.addChild(expando);
|
|
45
38
|
head.element.append(this.container.element);
|
|
@@ -52,12 +45,31 @@ export class CollapsiblePanel extends UiComponent {
|
|
|
52
45
|
}
|
|
53
46
|
this._mainChildVisible = options?.initiallyExpanded ?? false;
|
|
54
47
|
this.element = head.element;
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
48
|
+
this.expando = expando;
|
|
49
|
+
this.addChildren([this.head, this.container]);
|
|
50
|
+
}
|
|
51
|
+
toString() {
|
|
52
|
+
return `[${CollapsiblePanel.name}#${this.componentId}]`;
|
|
53
|
+
}
|
|
54
|
+
addChildHead(child) {
|
|
55
|
+
this.head.addChild(child);
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
addChildrenHead(children) {
|
|
59
|
+
for (const child of children ?? []) {
|
|
60
|
+
this.head.addChild(child);
|
|
61
|
+
}
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
addChildContent(child) {
|
|
65
|
+
this.container.addChild(child);
|
|
66
|
+
return this;
|
|
57
67
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
68
|
+
addChildrenContent(children) {
|
|
69
|
+
for (const child of children ?? []) {
|
|
70
|
+
this.container.addChild(child);
|
|
71
|
+
}
|
|
72
|
+
return this;
|
|
61
73
|
}
|
|
62
74
|
/**
|
|
63
75
|
* Control the visibility of the panel's contents.
|
|
@@ -71,20 +83,20 @@ export class CollapsiblePanel extends UiComponent {
|
|
|
71
83
|
this._mainChildVisible = visible;
|
|
72
84
|
if (this._mainChildVisible) {
|
|
73
85
|
// Refresh panel UI on expand.
|
|
74
|
-
this.container.
|
|
86
|
+
this.container.requestRefresh();
|
|
75
87
|
// Show the DOM element.
|
|
76
88
|
this.container.element.removeClass(stylesSettingListItem.hidden);
|
|
77
89
|
// Reflect expanded state on expando.
|
|
78
|
-
this.
|
|
90
|
+
this.expando.setExpanded();
|
|
79
91
|
// Reflect expanded state for CSS.
|
|
80
|
-
this.
|
|
92
|
+
this.head.element.addClass(stylesSettingListItem.expanded);
|
|
81
93
|
// This is NOT a DOM event! It can only be caught by listening on this panel directly.
|
|
82
94
|
this.dispatchEvent(new CustomEvent("panelShown"));
|
|
83
95
|
}
|
|
84
96
|
else {
|
|
85
97
|
this.container.element.addClass(stylesSettingListItem.hidden);
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
98
|
+
this.expando.setCollapsed();
|
|
99
|
+
this.head.element.removeClass(stylesSettingListItem.expanded);
|
|
88
100
|
this.dispatchEvent(new CustomEvent("panelHidden"));
|
|
89
101
|
}
|
|
90
102
|
}
|
|
@@ -102,5 +114,10 @@ export class CollapsiblePanel extends UiComponent {
|
|
|
102
114
|
toggleChildren(this.children);
|
|
103
115
|
}
|
|
104
116
|
}
|
|
117
|
+
requestRefresh(withChildren = false, depth = 0) {
|
|
118
|
+
super.requestRefresh(withChildren, depth);
|
|
119
|
+
this.head.requestRefresh(true, depth + 1);
|
|
120
|
+
}
|
|
121
|
+
refreshUi() { }
|
|
105
122
|
}
|
|
106
123
|
//# sourceMappingURL=CollapsiblePanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsiblePanel.js","sourceRoot":"","sources":["../../../source/ui/components/CollapsiblePanel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
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AAC;oBAC7B,IAAI,EAAE,CAAmB,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC;wBAClD,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;oBACrC,CAAC;yBAAM,CAAC;wBACN,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;oBACjC,CAAC;gBACH,CAAC;YACH,CAAC,CAAC;YAEF,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,cAAc,CAAC,YAAY,GAAG,KAAK,EAAE,KAAK,GAAG,CAAC;QAC5C,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,KAAU,CAAC;CACrB"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
2
1
|
import { UiComponent, type UiComponentOptions } from "./UiComponent.js";
|
|
2
|
+
export type ContainerOptions = ThisType<Container> & UiComponentOptions & {
|
|
3
|
+
readonly classes?: Array<string>;
|
|
4
|
+
};
|
|
3
5
|
export declare class Container extends UiComponent {
|
|
6
|
+
readonly options: ContainerOptions;
|
|
4
7
|
readonly element: JQuery;
|
|
5
8
|
/**
|
|
6
9
|
* Constructs a simple container element without any special properties.
|
|
@@ -8,6 +11,8 @@ export declare class Container extends UiComponent {
|
|
|
8
11
|
* @param host A reference to the host.
|
|
9
12
|
* @param options Options for the container.
|
|
10
13
|
*/
|
|
11
|
-
constructor(
|
|
14
|
+
constructor(parent: UiComponent, options?: ContainerOptions);
|
|
15
|
+
toString(): string;
|
|
16
|
+
refreshUi(): void;
|
|
12
17
|
}
|
|
13
18
|
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../source/ui/components/Container.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../source/ui/components/Container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,SAAS,CAAC,GAChD,kBAAkB,GAAG;IACnB,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC,CAAC;AAEJ,qBAAa,SAAU,SAAQ,WAAW;IACxC,SAAiB,OAAO,EAAE,gBAAgB,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;gBACS,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAU3D,QAAQ,IAAI,MAAM;IAIlB,SAAS,IAAI,IAAI;CAClB"}
|
|
@@ -7,13 +7,16 @@ export class Container extends UiComponent {
|
|
|
7
7
|
* @param host A reference to the host.
|
|
8
8
|
* @param options Options for the container.
|
|
9
9
|
*/
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
10
|
+
constructor(parent, options) {
|
|
11
|
+
super(parent, { ...options });
|
|
12
12
|
this.element = $("<div/>");
|
|
13
13
|
for (const className of options?.classes ?? []) {
|
|
14
14
|
this.element.addClass(className);
|
|
15
15
|
}
|
|
16
|
-
this.addChildren(options?.children);
|
|
17
16
|
}
|
|
17
|
+
toString() {
|
|
18
|
+
return `[${Container.name}#${this.componentId}]`;
|
|
19
|
+
}
|
|
20
|
+
refreshUi() { }
|
|
18
21
|
}
|
|
19
22
|
//# sourceMappingURL=Container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../source/ui/components/Container.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../source/ui/components/Container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA2B,MAAM,kBAAkB,CAAC;AAOxE,MAAM,OAAO,SAAU,SAAQ,WAAW;IAE/B,OAAO,CAAS;IAEzB;;;;;OAKG;IACH,YAAY,MAAmB,EAAE,OAA0B;QACzD,KAAK,CAAC,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;QAE9B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;QAE3B,KAAK,MAAM,SAAS,IAAI,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,CAAC;YAC/C,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC;IACnD,CAAC;IAED,SAAS,KAAU,CAAC;CACrB"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
2
1
|
import type { Setting } from "../../settings/Settings.js";
|
|
3
2
|
import type { Cycle } from "../../types/index.js";
|
|
4
|
-
import { SettingListItem } from "./SettingListItem.js";
|
|
5
3
|
import { SettingsList, type SettingsListOptions } from "./SettingsList.js";
|
|
4
|
+
import type { UiComponent } from "./UiComponent.js";
|
|
6
5
|
export type SettingWithCycles = Record<Cycle, Setting>;
|
|
7
|
-
export type
|
|
6
|
+
export type CyclesListOptions = ThisType<CyclesList> & SettingsListOptions & {
|
|
8
7
|
/**
|
|
9
8
|
* Called when a cycle is checked.
|
|
10
9
|
*
|
|
11
10
|
* @param label The label on the cycle element.
|
|
12
11
|
* @param setting The setting associated with the cycle.
|
|
13
12
|
*/
|
|
14
|
-
readonly
|
|
13
|
+
readonly onCheckCycle?: (label: string, setting: Setting, isBatchProcess?: boolean) => void;
|
|
15
14
|
/**
|
|
16
15
|
* Called when a cycle is unchecked.
|
|
17
16
|
*
|
|
18
17
|
* @param label The label on the cycle element.
|
|
19
18
|
* @param setting The setting associated with the cycle.
|
|
20
19
|
*/
|
|
21
|
-
readonly
|
|
20
|
+
readonly onUnCheckCycle?: (label: string, setting: Setting, isBatchProcess?: boolean) => void;
|
|
22
21
|
};
|
|
23
22
|
/**
|
|
24
23
|
* A list of settings correlating to the planetary cycles in the game.
|
|
25
24
|
*/
|
|
26
|
-
export declare class CyclesList extends SettingsList
|
|
25
|
+
export declare class CyclesList extends SettingsList {
|
|
26
|
+
readonly options: CyclesListOptions;
|
|
27
27
|
readonly setting: SettingWithCycles;
|
|
28
28
|
/**
|
|
29
29
|
* Constructs a `SeasonsList`.
|
|
@@ -33,7 +33,6 @@ export declare class CyclesList extends SettingsList<SeasonsListOptions> {
|
|
|
33
33
|
* @param behavior Control cycle check box log output
|
|
34
34
|
* @param options Options for this list.
|
|
35
35
|
*/
|
|
36
|
-
constructor(
|
|
37
|
-
private _makeCycle;
|
|
36
|
+
constructor(parent: UiComponent, setting: SettingWithCycles, options?: CyclesListOptions);
|
|
38
37
|
}
|
|
39
38
|
//# sourceMappingURL=CyclesList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CyclesList.d.ts","sourceRoot":"","sources":["../../../source/ui/components/CyclesList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"CyclesList.d.ts","sourceRoot":"","sources":["../../../source/ui/components/CyclesList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,UAAU,CAAC,GAClD,mBAAmB,GAAG;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE5F;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/F,CAAC;AAEJ;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,SAAiB,OAAO,EAAE,iBAAiB,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IAEpC;;;;;;;OAOG;gBACS,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,iBAAiB;CA6CzF"}
|
|
@@ -13,39 +13,46 @@ export class CyclesList extends SettingsList {
|
|
|
13
13
|
* @param behavior Control cycle check box log output
|
|
14
14
|
* @param options Options for this list.
|
|
15
15
|
*/
|
|
16
|
-
constructor(
|
|
17
|
-
super(
|
|
16
|
+
constructor(parent, setting, options) {
|
|
17
|
+
super(parent, options);
|
|
18
18
|
this.setting = setting;
|
|
19
|
+
const makeCycle = (cycle, setting) => {
|
|
20
|
+
const label = parent.host.engine.labelForCycle(cycle);
|
|
21
|
+
return new SettingListItem(parent, setting, label, {
|
|
22
|
+
onCheck: (isBatchProcess) => {
|
|
23
|
+
options?.onCheckCycle?.(label, setting, isBatchProcess);
|
|
24
|
+
this.requestRefresh();
|
|
25
|
+
},
|
|
26
|
+
onUnCheck: (isBatchProcess) => {
|
|
27
|
+
options?.onUnCheckCycle?.(label, setting, isBatchProcess);
|
|
28
|
+
this.requestRefresh();
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
const cycles = [
|
|
33
|
+
makeCycle("charon", this.setting.charon),
|
|
34
|
+
makeCycle("umbra", this.setting.umbra),
|
|
35
|
+
makeCycle("yarn", this.setting.yarn),
|
|
36
|
+
makeCycle("helios", this.setting.helios),
|
|
37
|
+
makeCycle("cath", this.setting.cath),
|
|
38
|
+
makeCycle("redmoon", this.setting.redmoon),
|
|
39
|
+
makeCycle("dune", this.setting.dune),
|
|
40
|
+
makeCycle("piscine", this.setting.piscine),
|
|
41
|
+
makeCycle("terminus", this.setting.terminus),
|
|
42
|
+
makeCycle("kairo", this.setting.kairo),
|
|
43
|
+
];
|
|
44
|
+
this.addChildren(cycles);
|
|
19
45
|
this.addEventListener("enableAll", () => {
|
|
20
|
-
for (const
|
|
21
|
-
|
|
46
|
+
for (const cycle of cycles) {
|
|
47
|
+
cycle.check(true);
|
|
22
48
|
}
|
|
23
|
-
this.
|
|
49
|
+
this.requestRefresh();
|
|
24
50
|
});
|
|
25
51
|
this.addEventListener("disableAll", () => {
|
|
26
|
-
for (const
|
|
27
|
-
|
|
52
|
+
for (const cycle of cycles) {
|
|
53
|
+
cycle.uncheck(true);
|
|
28
54
|
}
|
|
29
|
-
this.
|
|
30
|
-
});
|
|
31
|
-
this.addChildren([
|
|
32
|
-
this._makeCycle("charon", this.setting.charon, options),
|
|
33
|
-
this._makeCycle("umbra", this.setting.umbra, options),
|
|
34
|
-
this._makeCycle("yarn", this.setting.yarn, options),
|
|
35
|
-
this._makeCycle("helios", this.setting.helios, options),
|
|
36
|
-
this._makeCycle("cath", this.setting.cath, options),
|
|
37
|
-
this._makeCycle("redmoon", this.setting.redmoon, options),
|
|
38
|
-
this._makeCycle("dune", this.setting.dune, options),
|
|
39
|
-
this._makeCycle("piscine", this.setting.piscine, options),
|
|
40
|
-
this._makeCycle("terminus", this.setting.terminus, options),
|
|
41
|
-
this._makeCycle("kairo", this.setting.kairo, options),
|
|
42
|
-
]);
|
|
43
|
-
}
|
|
44
|
-
_makeCycle(cycle, setting, handler) {
|
|
45
|
-
const label = this._host.engine.labelForCycle(cycle);
|
|
46
|
-
return new SettingListItem(this._host, setting, label, {
|
|
47
|
-
onCheck: (isBatchProcess) => handler?.onCheck?.(label, setting, isBatchProcess),
|
|
48
|
-
onUnCheck: (isBatchProcess) => handler?.onUnCheck?.(label, setting, isBatchProcess),
|
|
55
|
+
this.requestRefresh();
|
|
49
56
|
});
|
|
50
57
|
}
|
|
51
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CyclesList.js","sourceRoot":"","sources":["../../../source/ui/components/CyclesList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CyclesList.js","sourceRoot":"","sources":["../../../source/ui/components/CyclesList.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAA4B,MAAM,mBAAmB,CAAC;AAwB3E;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,YAAY;IAEjC,OAAO,CAAoB;IAEpC;;;;;;;OAOG;IACH,YAAY,MAAmB,EAAE,OAA0B,EAAE,OAA2B;QACtF,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,MAAM,SAAS,GAAG,CAAC,KAAY,EAAE,OAAgB,EAAE,EAAE;YACnD,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YACtD,OAAO,IAAI,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;gBACjD,OAAO,EAAE,CAAC,cAAwB,EAAE,EAAE;oBACpC,OAAO,EAAE,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;oBACxD,IAAI,CAA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AAC,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;YACvC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBAC3B,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { KittenScientists } from "../../KittenScientists.js";
|
|
2
1
|
import { UiComponent } from "./UiComponent.js";
|
|
3
2
|
export declare class Delimiter extends UiComponent {
|
|
4
3
|
readonly element: JQuery;
|
|
@@ -9,6 +8,8 @@ export declare class Delimiter extends UiComponent {
|
|
|
9
8
|
* @param label The label on the fieldset.
|
|
10
9
|
* @param options Options for the fieldset.
|
|
11
10
|
*/
|
|
12
|
-
constructor(
|
|
11
|
+
constructor(parent: UiComponent);
|
|
12
|
+
toString(): string;
|
|
13
|
+
refreshUi(): void;
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=Delimiter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Delimiter.d.ts","sourceRoot":"","sources":["../../../source/ui/components/Delimiter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Delimiter.d.ts","sourceRoot":"","sources":["../../../source/ui/components/Delimiter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;;;;;OAMG;gBACS,MAAM,EAAE,WAAW;IAO/B,QAAQ,IAAI,MAAM;IAIlB,SAAS,IAAI,IAAI;CAClB"}
|
|
@@ -9,10 +9,14 @@ export class Delimiter extends UiComponent {
|
|
|
9
9
|
* @param label The label on the fieldset.
|
|
10
10
|
* @param options Options for the fieldset.
|
|
11
11
|
*/
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
12
|
+
constructor(parent) {
|
|
13
|
+
super(parent, {});
|
|
14
14
|
const element = $("<div/>").addClass(styles.delimiter);
|
|
15
15
|
this.element = element;
|
|
16
16
|
}
|
|
17
|
+
toString() {
|
|
18
|
+
return `[${Delimiter.name}#${this.componentId}]`;
|
|
19
|
+
}
|
|
20
|
+
refreshUi() { }
|
|
17
21
|
}
|
|
18
22
|
//# sourceMappingURL=Delimiter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Delimiter.js","sourceRoot":"","sources":["../../../source/ui/components/Delimiter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Delimiter.js","sourceRoot":"","sources":["../../../source/ui/components/Delimiter.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,OAAO,SAAU,SAAQ,WAAW;IAC/B,OAAO,CAAS;IAEzB;;;;;;OAMG;IACH,YAAY,MAAmB;QAC7B,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAElB,MAAM,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC;IACnD,CAAC;IAED,SAAS,KAAU,CAAC;CACrB"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UiComponent, type UiComponentOptions } from "./UiComponent.js";
|
|
3
|
-
export type DialogOptions = UiComponentOptions & {
|
|
1
|
+
import { Container } from "./Container.js";
|
|
2
|
+
import { UiComponent, type UiComponentInterface, type UiComponentOptions } from "./UiComponent.js";
|
|
3
|
+
export type DialogOptions = ThisType<Dialog> & UiComponentOptions & {
|
|
4
4
|
readonly hasCancel?: boolean;
|
|
5
5
|
readonly hasClose?: boolean;
|
|
6
6
|
readonly onCancel?: () => void;
|
|
7
7
|
readonly onConfirm?: (result: string) => void;
|
|
8
8
|
readonly prompt?: boolean;
|
|
9
9
|
readonly promptValue?: string;
|
|
10
|
-
readonly childrenAfterPrompt?: Array<UiComponent>;
|
|
11
10
|
};
|
|
12
11
|
export declare class Dialog extends UiComponent {
|
|
12
|
+
readonly options: DialogOptions;
|
|
13
|
+
readonly container: Container;
|
|
13
14
|
readonly element: JQuery<HTMLDialogElement>;
|
|
15
|
+
readonly head: Container;
|
|
14
16
|
returnValue: string;
|
|
15
17
|
/**
|
|
16
18
|
* Constructs a dialog.
|
|
@@ -18,10 +20,16 @@ export declare class Dialog extends UiComponent {
|
|
|
18
20
|
* @param host - A reference to the host.
|
|
19
21
|
* @param options - Options for the dialog.
|
|
20
22
|
*/
|
|
21
|
-
constructor(
|
|
23
|
+
constructor(parent: UiComponent, options?: DialogOptions);
|
|
24
|
+
toString(): string;
|
|
25
|
+
addChildHead(child: UiComponentInterface): this;
|
|
26
|
+
addChildrenHead(children?: Iterable<UiComponentInterface>): this;
|
|
27
|
+
addChildContent(child: UiComponent): this;
|
|
28
|
+
addChildrenContent(children?: Iterable<UiComponentInterface>): this;
|
|
22
29
|
show(): void;
|
|
23
30
|
showModal(): void;
|
|
24
31
|
close(): void;
|
|
25
|
-
|
|
32
|
+
refreshUi(): void;
|
|
33
|
+
static prompt(parent: UiComponent, text: string, title?: string, initialValue?: string, explainer?: string): Promise<string | undefined>;
|
|
26
34
|
}
|
|
27
35
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../source/ui/components/Dialog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../source/ui/components/Dialog.ts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IAIT,KAAK;IAKL,SAAS,IAAI,IAAI;WAEJ,MAAM,CACjB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAgC/B"}
|
|
@@ -11,7 +11,9 @@ import { Paragraph } from "./Paragraph.js";
|
|
|
11
11
|
import stylesToolbarListItem from "./ToolbarListItem.module.css";
|
|
12
12
|
import { UiComponent } from "./UiComponent.js";
|
|
13
13
|
export class Dialog extends UiComponent {
|
|
14
|
+
container;
|
|
14
15
|
element;
|
|
16
|
+
head;
|
|
15
17
|
returnValue;
|
|
16
18
|
/**
|
|
17
19
|
* Constructs a dialog.
|
|
@@ -19,15 +21,14 @@ export class Dialog extends UiComponent {
|
|
|
19
21
|
* @param host - A reference to the host.
|
|
20
22
|
* @param options - Options for the dialog.
|
|
21
23
|
*/
|
|
22
|
-
constructor(
|
|
23
|
-
super(
|
|
24
|
+
constructor(parent, options) {
|
|
25
|
+
super(parent, { ...options });
|
|
24
26
|
this.element = $("<dialog/>")
|
|
25
27
|
.addClass("dialog")
|
|
26
28
|
.addClass("help")
|
|
27
29
|
.addClass(styles.dialog);
|
|
28
|
-
//.addClass(stylesUserInterface.ui);
|
|
29
30
|
if (options?.hasClose !== false) {
|
|
30
|
-
this.addChild(new Button(
|
|
31
|
+
this.addChild(new Button(parent, "close", null, {
|
|
31
32
|
classes: [styles.close],
|
|
32
33
|
onClick: () => {
|
|
33
34
|
this.close();
|
|
@@ -35,11 +36,13 @@ export class Dialog extends UiComponent {
|
|
|
35
36
|
},
|
|
36
37
|
}));
|
|
37
38
|
}
|
|
38
|
-
this.addChildren(options?.children);
|
|
39
39
|
this.returnValue = options?.promptValue ?? "";
|
|
40
|
+
this.head = new Container(parent);
|
|
41
|
+
this.container = new Container(parent);
|
|
40
42
|
this.addChildren(coalesceArray([
|
|
43
|
+
this.head,
|
|
41
44
|
options?.prompt
|
|
42
|
-
? new Input(
|
|
45
|
+
? new Input(parent, {
|
|
43
46
|
onChange: (value) => {
|
|
44
47
|
this.returnValue = value;
|
|
45
48
|
},
|
|
@@ -56,31 +59,53 @@ export class Dialog extends UiComponent {
|
|
|
56
59
|
value: options.promptValue,
|
|
57
60
|
})
|
|
58
61
|
: undefined,
|
|
59
|
-
|
|
60
|
-
new Delimiter(
|
|
61
|
-
new Container(
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
this.container,
|
|
63
|
+
new Delimiter(parent),
|
|
64
|
+
new Container(parent, {
|
|
65
|
+
classes: [stylesToolbarListItem.toolbar],
|
|
66
|
+
}).addChildren(coalesceArray([
|
|
67
|
+
new Button(parent, "OK", null, {
|
|
68
|
+
classes: [stylesButton.large],
|
|
69
|
+
onClick: () => {
|
|
70
|
+
this.close();
|
|
71
|
+
options?.onConfirm?.(this.returnValue);
|
|
72
|
+
},
|
|
73
|
+
}),
|
|
74
|
+
options?.hasCancel
|
|
75
|
+
? new Button(parent, "Cancel", null, {
|
|
64
76
|
classes: [stylesButton.large],
|
|
65
77
|
onClick: () => {
|
|
66
78
|
this.close();
|
|
67
|
-
options?.
|
|
79
|
+
options.onCancel?.();
|
|
68
80
|
},
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
classes: [stylesButton.large],
|
|
73
|
-
onClick: () => {
|
|
74
|
-
this.close();
|
|
75
|
-
options.onCancel?.();
|
|
76
|
-
},
|
|
77
|
-
})
|
|
78
|
-
: undefined,
|
|
79
|
-
]),
|
|
80
|
-
classes: [stylesToolbarListItem.toolbar],
|
|
81
|
-
}),
|
|
81
|
+
})
|
|
82
|
+
: undefined,
|
|
83
|
+
])),
|
|
82
84
|
]));
|
|
83
85
|
}
|
|
86
|
+
toString() {
|
|
87
|
+
return `[${Dialog.name}#${this.componentId}]`;
|
|
88
|
+
}
|
|
89
|
+
addChildHead(child) {
|
|
90
|
+
this.head.addChild(child);
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
addChildrenHead(children) {
|
|
94
|
+
for (const child of children ?? []) {
|
|
95
|
+
this.head.addChild(child);
|
|
96
|
+
}
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
addChildContent(child) {
|
|
100
|
+
this.container.addChild(child);
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
addChildrenContent(children) {
|
|
104
|
+
for (const child of children ?? []) {
|
|
105
|
+
this.container.addChild(child);
|
|
106
|
+
}
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
84
109
|
show() {
|
|
85
110
|
$("#gamePageContainer").append(this.element);
|
|
86
111
|
this.element[0].show();
|
|
@@ -93,21 +118,10 @@ export class Dialog extends UiComponent {
|
|
|
93
118
|
this.element[0].close();
|
|
94
119
|
this.element.remove();
|
|
95
120
|
}
|
|
96
|
-
|
|
121
|
+
refreshUi() { }
|
|
122
|
+
static async prompt(parent, text, title, initialValue, explainer) {
|
|
97
123
|
return new Promise(resolve => {
|
|
98
|
-
new Dialog(
|
|
99
|
-
children: coalesceArray([
|
|
100
|
-
title ? new HeaderListItem(host, title) : undefined,
|
|
101
|
-
new Paragraph(host, text),
|
|
102
|
-
]),
|
|
103
|
-
childrenAfterPrompt: explainer
|
|
104
|
-
? [
|
|
105
|
-
new Container(host, {
|
|
106
|
-
children: [new Paragraph(host, explainer)],
|
|
107
|
-
classes: [stylesExplainer.explainer],
|
|
108
|
-
}),
|
|
109
|
-
]
|
|
110
|
-
: [],
|
|
124
|
+
new Dialog(parent, {
|
|
111
125
|
hasCancel: true,
|
|
112
126
|
hasClose: false,
|
|
113
127
|
onCancel: () => {
|
|
@@ -118,7 +132,19 @@ export class Dialog extends UiComponent {
|
|
|
118
132
|
},
|
|
119
133
|
prompt: true,
|
|
120
134
|
promptValue: initialValue,
|
|
121
|
-
})
|
|
135
|
+
})
|
|
136
|
+
.addChildrenHead(coalesceArray([
|
|
137
|
+
title ? new HeaderListItem(parent, title) : undefined,
|
|
138
|
+
new Paragraph(parent, text),
|
|
139
|
+
]))
|
|
140
|
+
.addChildrenContent(explainer
|
|
141
|
+
? [
|
|
142
|
+
new Container(parent, {
|
|
143
|
+
classes: [stylesExplainer.explainer],
|
|
144
|
+
}).addChildren([new Paragraph(parent, explainer)]),
|
|
145
|
+
]
|
|
146
|
+
: [])
|
|
147
|
+
.showModal();
|
|
122
148
|
});
|
|
123
149
|
}
|
|
124
150
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../source/ui/components/Dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../source/ui/components/Dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAsD,MAAM,kBAAkB,CAAC;AAYnG,MAAM,OAAO,MAAO,SAAQ,WAAW;IAE5B,SAAS,CAAY;IACrB,OAAO,CAA4B;IACnC,IAAI,CAAY;IACzB,WAAW,CAAS;IAEp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