@league-of-foundry-developers/foundry-vtt-types 9.255.1 → 9.268.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/package.json +3 -2
- package/src/foundry/common/data/data.mjs/index.d.ts +0 -1
- package/src/foundry/common/types.mjs.d.ts +4 -4
- package/src/foundry/common/utils/helpers.mjs.d.ts +1 -0
- package/src/foundry/foundry.js/application.d.ts +0 -1
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/tokenHUD.d.ts +7 -3
- package/src/foundry/foundry.js/applications/cameraViews.d.ts +3 -3
- package/src/foundry/foundry.js/applications/chatPopout.d.ts +1 -1
- package/src/foundry/foundry.js/applications/compendium.d.ts +20 -11
- package/src/foundry/foundry.js/applications/controlsReference.d.ts +17 -2
- package/src/foundry/foundry.js/applications/dialog.d.ts +14 -29
- package/src/foundry/foundry.js/applications/filePicker.d.ts +67 -75
- package/src/foundry/foundry.js/applications/formApplication.d.ts +7 -2
- package/src/foundry/foundry.js/applications/formApplications/avConfig.d.ts +19 -58
- package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +2 -4
- package/src/foundry/foundry.js/applications/formApplications/{entitySheetConfig.d.ts → documentSheetConfig.d.ts} +36 -19
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +1 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +2 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardConfig.d.ts +51 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfig.d.ts +88 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfigs/cardsHand.d.ts +20 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfigs/cardsPile.d.ts +20 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfigs/index.d.ts +2 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/combatantConfig.d.ts +2 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +17 -11
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +3 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +3 -9
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/journalSheet.d.ts +10 -12
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/macroConfig.d.ts +4 -5
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +2 -6
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +1 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +8 -12
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +2 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistSoundConfig.d.ts +1 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +10 -11
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +28 -15
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +3 -6
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +1 -4
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +17 -21
- package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +40 -7
- package/src/foundry/foundry.js/applications/formApplications/index.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +10 -24
- package/src/foundry/foundry.js/applications/formApplications/permissionConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +15 -3
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +23 -16
- package/src/foundry/foundry.js/applications/formApplications/{defaultTokenConfig.d.ts → tokenConfigs/defaultTokenConfig.d.ts} +29 -16
- package/src/foundry/foundry.js/applications/formApplications/tokenConfigs/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +22 -15
- package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +23 -12
- package/src/foundry/foundry.js/applications/hotbar.d.ts +7 -3
- package/src/foundry/foundry.js/applications/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/invitationLinks.d.ts +25 -10
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +16 -1
- package/src/foundry/foundry.js/applications/sidebar.d.ts +7 -0
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +65 -38
- package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +17 -3
- package/src/foundry/foundry.js/applications/sidebarTabs/settings.d.ts +19 -16
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts +0 -3
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/journalDirectory.d.ts +4 -18
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/macroDirectory.d.ts +2 -8
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/playlistDirectory.d.ts +38 -5
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts +6 -0
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +3 -1
- package/src/foundry/foundry.js/applications/supportDetails.d.ts +78 -0
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/cards.d.ts +10 -2
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +87 -49
- package/src/foundry/foundry.js/clientDocuments/folder.d.ts +3 -7
- package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +6 -13
- package/src/foundry/foundry.js/clientDocuments/playlistSound.d.ts +6 -0
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollection.d.ts +2 -2
- package/src/foundry/foundry.js/config.d.ts +21 -21
- package/src/foundry/foundry.js/contextMenu.d.ts +37 -28
- package/src/foundry/foundry.js/game.d.ts +2 -2
- package/src/foundry/foundry.js/handlebarsHelpers.d.ts +26 -4
- package/src/foundry/foundry.js/mouseInteractionManager.d.ts +1 -1
- package/src/foundry/foundry.js/perceptionManager.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayer.d.ts +2 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/controlsLayer.d.ts +49 -48
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayer.d.ts +51 -40
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/lightingLayer.d.ts +63 -20
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayer.d.ts +0 -3
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/backgroundLayer.d.ts +4 -4
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/foregroundLayer.d.ts +21 -0
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/notesLayer.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/soundsLayer.d.ts +10 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/tokenLayer.d.ts +41 -20
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +50 -121
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/sightLayer.d.ts +125 -107
- package/src/foundry/foundry.js/pixi/containers/controlIcon.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/containers/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/containers/objectHUD.d.ts +82 -0
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/ambientLight.d.ts +27 -6
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/ambientSound.d.ts +26 -4
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/drawing.d.ts +34 -20
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/measuredTemplate.d.ts +52 -15
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/note.d.ts +9 -2
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/tile.d.ts +50 -12
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +248 -87
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +107 -16
- package/src/foundry/foundry.js/pixi/filters/abstractFilter.d.ts +42 -0
- package/src/foundry/foundry.js/pixi/filters/abstractFilters/fogColorFilter.d.ts +16 -0
- package/src/foundry/foundry.js/pixi/filters/abstractFilters/forceColorFilter.d.ts +17 -0
- package/src/foundry/foundry.js/pixi/filters/abstractFilters/glowFilter.d.ts +31 -0
- package/src/foundry/foundry.js/pixi/filters/abstractFilters/index.d.ts +4 -0
- package/src/foundry/foundry.js/pixi/filters/abstractFilters/roofMaskFilter.d.ts +20 -0
- package/src/foundry/foundry.js/pixi/filters/index.d.ts +2 -0
- package/src/foundry/foundry.js/roll.d.ts +2 -2
- package/src/foundry/foundry.js/rollTerms/poolTerm.d.ts +5 -0
- package/src/foundry/foundry.js/textEditor.d.ts +266 -231
- package/src/types/augments/index.d.ts +2 -0
- package/src/types/augments/pixiGraphicsSmooth.d.ts +7 -0
- package/src/types/augments/pixiLegacyGraphics.d.ts +7 -0
- package/src/types/utils.d.ts +5 -0
@@ -5,29 +5,19 @@
|
|
5
5
|
* @typeParam Options - The type of the options object
|
6
6
|
* @typeParam Data - The data structure used to render the handlebars template.
|
7
7
|
*/
|
8
|
-
|
9
8
|
declare class ModuleManagement<
|
10
9
|
Options extends FormApplicationOptions = FormApplicationOptions,
|
11
10
|
Data extends object = ModuleManagement.Data
|
12
11
|
> extends FormApplication<Options, Data, undefined> {
|
13
|
-
/**
|
14
|
-
* @defaultValue `'all'`
|
15
|
-
* @internal
|
16
|
-
*/
|
12
|
+
/** @internal */
|
17
13
|
protected _filter: ModuleManagement.FilterName;
|
18
14
|
|
19
15
|
/**
|
20
|
-
* @defaultValue `
|
16
|
+
* @defaultValue `true`
|
21
17
|
* @internal
|
22
18
|
*/
|
23
19
|
protected _expanded: boolean;
|
24
20
|
|
25
|
-
/**
|
26
|
-
* @defaultValue `{}`
|
27
|
-
* @internal
|
28
|
-
*/
|
29
|
-
protected _checked: Record<string, boolean>;
|
30
|
-
|
31
21
|
/**
|
32
22
|
* The named game setting which persists module configuration.
|
33
23
|
*/
|
@@ -61,17 +51,11 @@ declare class ModuleManagement<
|
|
61
51
|
/** @override */
|
62
52
|
activateListeners(html: JQuery): void;
|
63
53
|
|
64
|
-
/**
|
65
|
-
|
66
|
-
* @param event - (unused)
|
67
|
-
*/
|
68
|
-
protected _updateObject(event: Event, formData: ModuleManagement.FormData): Promise<Record<string, boolean>>;
|
54
|
+
/** @override */
|
55
|
+
protected _renderInner(data: Data): Promise<JQuery>;
|
69
56
|
|
70
|
-
/**
|
71
|
-
|
72
|
-
* @internal
|
73
|
-
*/
|
74
|
-
protected _restoreCheckboxState(): void;
|
57
|
+
/** @override */
|
58
|
+
protected _updateObject(event: Event, formData: ModuleManagement.FormData): Promise<unknown>;
|
75
59
|
|
76
60
|
/**
|
77
61
|
* Handle changes to a module checkbox to prompt for whether or not to enable dependencies
|
@@ -117,11 +101,11 @@ declare namespace ModuleManagement {
|
|
117
101
|
count: number;
|
118
102
|
}
|
119
103
|
|
120
|
-
type Module = foundry.packages.ModuleData['_source'] & {
|
104
|
+
type Module = Exclude<foundry.packages.ModuleData['_source'], 'authors'> & {
|
121
105
|
active: boolean;
|
122
106
|
availability: number;
|
123
107
|
data: foundry.packages.ModuleData;
|
124
|
-
css:
|
108
|
+
css: string;
|
125
109
|
hasPacks: boolean;
|
126
110
|
hasScripts: boolean;
|
127
111
|
hasStyles: boolean;
|
@@ -130,6 +114,8 @@ declare namespace ModuleManagement {
|
|
130
114
|
dependencies: string[] | null;
|
131
115
|
unavailable?: string;
|
132
116
|
incompatible?: string;
|
117
|
+
authors: string | undefined;
|
118
|
+
labels: string;
|
133
119
|
};
|
134
120
|
}
|
135
121
|
|
@@ -49,7 +49,7 @@ declare class PermissionConfig extends FormApplication<FormApplicationOptions, P
|
|
49
49
|
* @param event - (unused)
|
50
50
|
* @override
|
51
51
|
*/
|
52
|
-
protected _updateObject(event: Event, formData: PermissionConfig.FormData): Promise<
|
52
|
+
protected _updateObject(event: Event, formData: PermissionConfig.FormData): Promise<unknown>;
|
53
53
|
}
|
54
54
|
|
55
55
|
declare namespace PermissionConfig {
|
@@ -2,7 +2,7 @@ import type { ConfiguredDocumentClass } from '../../../../types/helperTypes';
|
|
2
2
|
|
3
3
|
declare global {
|
4
4
|
/**
|
5
|
-
* The Application responsible for displaying and editing
|
5
|
+
* The Application responsible for displaying and editing the client and world settings for this world.
|
6
6
|
* This form renders the settings defined via the game.settings.register API which have config = true
|
7
7
|
* @typeParam Options - The type of the options object
|
8
8
|
* @typeParam Data - The data structure used to render the handlebars template.
|
@@ -21,7 +21,9 @@ declare global {
|
|
21
21
|
* template: "templates/sidebar/apps/settings-config.html",
|
22
22
|
* width: 600,
|
23
23
|
* height: "auto",
|
24
|
-
* tabs: [
|
24
|
+
* tabs: [
|
25
|
+
* {navSelector: ".tabs", contentSelector: ".content", initial: "core"}
|
26
|
+
* ]
|
25
27
|
* })
|
26
28
|
* ```
|
27
29
|
*/
|
@@ -50,8 +52,18 @@ declare global {
|
|
50
52
|
*/
|
51
53
|
protected _onResetDefaults(event: JQuery.ClickEvent): void;
|
52
54
|
|
55
|
+
/**
|
56
|
+
* Preview font scaling as the setting is changed.
|
57
|
+
* @param event - The triggering event.
|
58
|
+
* @internal
|
59
|
+
*/
|
60
|
+
protected _previewFontScaling(event: JQuery.ChangeEvent): void;
|
61
|
+
|
62
|
+
/** @override */
|
63
|
+
close(options?: Application.CloseOptions | undefined): Promise<void>;
|
64
|
+
|
53
65
|
/** @override */
|
54
|
-
protected _updateObject(event: Event, formData: SettingsConfig.FormData): Promise<
|
66
|
+
protected _updateObject(event: Event, formData: SettingsConfig.FormData): Promise<unknown>;
|
55
67
|
}
|
56
68
|
|
57
69
|
namespace SettingsConfig {
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { ConfiguredDocumentClassForName } from '../../../../types/helperTypes';
|
2
|
-
import type { TokenDataConstructorData } from '../../../common/data/data.mjs/tokenData';
|
3
2
|
|
4
3
|
declare global {
|
5
4
|
/**
|
6
5
|
* The Application responsible for configuring a single Token document within a parent Scene.
|
6
|
+
* Note that due to an oversight, this class does not inherit from {@link DocumentSheet} as it was intended to, and will
|
7
|
+
* be changed in v10.
|
7
8
|
* @typeParam Options - The type of the options object
|
8
9
|
* @typeParam Data - The data structure used to render the handlebars template.
|
9
10
|
*/
|
@@ -33,7 +34,11 @@ declare global {
|
|
33
34
|
* template: "templates/scene/token-config.html",
|
34
35
|
* width: 480,
|
35
36
|
* height: "auto",
|
36
|
-
* tabs: [
|
37
|
+
* tabs: [
|
38
|
+
* {navSelector: '.tabs[data-group="main"]', contentSelector: "form", initial: "character"},
|
39
|
+
* {navSelector: '.tabs[data-group="light"]', contentSelector: '.tab[data-tab="light"]', initial: "basic"}
|
40
|
+
* ],
|
41
|
+
* sheetConfig: true
|
37
42
|
* })
|
38
43
|
* ```
|
39
44
|
*/
|
@@ -61,6 +66,9 @@ declare global {
|
|
61
66
|
/** @override */
|
62
67
|
render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<this>;
|
63
68
|
|
69
|
+
/** @override */
|
70
|
+
protected _renderInner(...args: [Data]): Promise<JQuery>;
|
71
|
+
|
64
72
|
/**
|
65
73
|
* Get an Object of image paths and filenames to display in the Token sheet
|
66
74
|
* @internal
|
@@ -68,20 +76,19 @@ declare global {
|
|
68
76
|
protected _getAlternateTokenImages(): Promise<Record<string, string>>;
|
69
77
|
|
70
78
|
/** @override */
|
71
|
-
|
79
|
+
protected _getHeaderButtons(): Application.HeaderButton[];
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Shim for {@link DocumentSheet#_onConfigureSheet} that will be replaced in v10 when this class subclasses it.
|
83
|
+
* @internal
|
84
|
+
*/
|
85
|
+
protected _onConfigureSheet(event: JQuery.ClickEvent): void;
|
72
86
|
|
73
87
|
/** @override */
|
74
|
-
|
88
|
+
activateListeners(html: JQuery): void;
|
75
89
|
|
76
90
|
/** @override */
|
77
|
-
protected _updateObject(
|
78
|
-
event: Event,
|
79
|
-
formData: TokenConfig.FormData
|
80
|
-
): Promise<
|
81
|
-
| InstanceType<ConfiguredDocumentClassForName<'Token'>>
|
82
|
-
| InstanceType<ConfiguredDocumentClassForName<'Actor'>>
|
83
|
-
| undefined
|
84
|
-
>;
|
91
|
+
protected _updateObject(event: Event, formData: TokenConfig.FormData): Promise<unknown>;
|
85
92
|
|
86
93
|
/**
|
87
94
|
* Handle Token assignment requests to update the default prototype Token
|
@@ -110,15 +117,15 @@ declare global {
|
|
110
117
|
alternateImages: Record<string, string> | [];
|
111
118
|
object: foundry.data.PrototypeTokenData | foundry.data.TokenData;
|
112
119
|
options: Options;
|
113
|
-
gridUnits: string
|
120
|
+
gridUnits: string;
|
114
121
|
barAttributes: Record<string, string[]>;
|
115
|
-
bar1: ReturnType<TokenDocument['getBarAttribute']
|
116
|
-
bar2: ReturnType<TokenDocument['getBarAttribute']
|
122
|
+
bar1: ReturnType<TokenDocument['getBarAttribute']> | undefined;
|
123
|
+
bar2: ReturnType<TokenDocument['getBarAttribute']> | undefined;
|
124
|
+
colorationTechniques: AdaptiveLightingShader.ColorationTechniques;
|
117
125
|
displayModes: Record<foundry.CONST.TOKEN_DISPLAY_MODES, string>;
|
118
126
|
actors: { _id: string; name: string }[];
|
119
127
|
dispositions: Record<foundry.CONST.TOKEN_DISPOSITIONS, string>;
|
120
128
|
lightAnimations: { [Key in keyof typeof CONFIG.Canvas.lightAnimations]: string } & { '': string };
|
121
|
-
lightAlpha: number;
|
122
129
|
isGM: boolean;
|
123
130
|
}
|
124
131
|
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
|
2
|
+
import type { TokenBarData } from '../../../../common/data/data.mjs/tokenBarData';
|
3
|
+
|
1
4
|
declare global {
|
2
5
|
/**
|
3
6
|
* A sheet that alters the values of the default Token configuration used when new Token documents are created.
|
@@ -5,13 +8,18 @@ declare global {
|
|
5
8
|
class DefaultTokenConfig<
|
6
9
|
Options extends FormApplicationOptions = FormApplicationOptions,
|
7
10
|
Data extends DefaultTokenConfig.Data = DefaultTokenConfig.Data
|
8
|
-
> extends
|
9
|
-
constructor(object: unknown, options
|
11
|
+
> extends TokenConfig<Options, Data> {
|
12
|
+
constructor(object: unknown, options?: Partial<Options> | undefined);
|
10
13
|
|
11
14
|
data: foundry.data.TokenData;
|
12
15
|
|
16
|
+
object: InstanceType<ConfiguredDocumentClassForName<'Token'>>;
|
17
|
+
|
18
|
+
token: InstanceType<ConfiguredDocumentClassForName<'Token'>>;
|
19
|
+
|
13
20
|
/**
|
14
21
|
* The named world setting that stores the default Token configuration
|
22
|
+
* @defaultValue `"defaultToken"`
|
15
23
|
*/
|
16
24
|
static SETTING: string;
|
17
25
|
|
@@ -20,24 +28,26 @@ declare global {
|
|
20
28
|
* @defaultValue
|
21
29
|
* ```typescript
|
22
30
|
* foundry.utils.mergeObject(super.defaultOptions, {
|
23
|
-
* id: "default-token-config",
|
24
|
-
* classes: ["sheet"],
|
25
31
|
* template: "templates/scene/default-token-config.html",
|
26
|
-
*
|
27
|
-
* width: 480,
|
28
|
-
* height: "auto"
|
32
|
+
* sheetConfig: false
|
29
33
|
* })
|
30
34
|
* ```
|
31
35
|
*/
|
32
|
-
static get defaultOptions():
|
36
|
+
static get defaultOptions(): FormApplicationOptions;
|
37
|
+
|
38
|
+
/** @override */
|
39
|
+
get id(): string;
|
40
|
+
|
41
|
+
/** @override */
|
42
|
+
get title(): string;
|
33
43
|
|
34
44
|
/** @override */
|
35
45
|
getData(options: unknown): Data | Promise<Data>;
|
36
46
|
|
37
47
|
/** @override */
|
38
48
|
_getSubmitData(
|
39
|
-
updateData?: Parameters<
|
40
|
-
): ReturnType<
|
49
|
+
updateData?: Parameters<TokenConfig['_getSubmitData']>[0]
|
50
|
+
): ReturnType<TokenConfig['_getSubmitData']>;
|
41
51
|
|
42
52
|
/** @override */
|
43
53
|
_updateObject(event: Event, formData?: object): Promise<unknown>;
|
@@ -49,16 +59,19 @@ declare global {
|
|
49
59
|
* Reset the form to default values
|
50
60
|
*/
|
51
61
|
reset(): void;
|
62
|
+
|
63
|
+
/** @override */
|
64
|
+
protected _onBarChange(): Promise<void>;
|
52
65
|
}
|
53
66
|
|
54
67
|
namespace DefaultTokenConfig {
|
55
|
-
interface Data
|
56
|
-
|
68
|
+
interface Data<Options extends FormApplicationOptions = FormApplicationOptions>
|
69
|
+
extends Omit<TokenConfig.Data<Options>, 'object' | 'bar1' | 'bar2'> {
|
70
|
+
object: foundry.data.TokenData['_source'];
|
71
|
+
isDefault: true;
|
57
72
|
barAttributes: ReturnType<typeof TokenDocument['getTrackedAttributeChoices']>;
|
58
|
-
|
59
|
-
|
60
|
-
displayModes: Record<ValueOf<typeof CONST.TOKEN_DISPLAY_MODES>, string>;
|
61
|
-
lightAlpha: number;
|
73
|
+
bar1: TokenBarData;
|
74
|
+
bar2: TokenBarData;
|
62
75
|
}
|
63
76
|
}
|
64
77
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
import './defaultTokenConfig';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ConfiguredDocumentClassForName } from '../../../../types/helperTypes';
|
1
|
+
import type { ConfiguredDocumentClassForName, ConfiguredObjectClassForName } from '../../../../types/helperTypes';
|
2
2
|
|
3
3
|
declare global {
|
4
4
|
/**
|
@@ -7,41 +7,47 @@ declare global {
|
|
7
7
|
* @typeParam Data - The data structure used to render the handlebars template.
|
8
8
|
*/
|
9
9
|
class WallConfig<
|
10
|
-
Options extends
|
10
|
+
Options extends DocumentSheetOptions = DocumentSheetOptions,
|
11
11
|
Data extends object = WallConfig.Data<Options>
|
12
|
-
> extends
|
12
|
+
> extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'Wall'>>> {
|
13
13
|
/**
|
14
14
|
* @defaultValue
|
15
15
|
* ```typescript
|
16
16
|
* const options = super.defaultOptions;
|
17
|
-
* options.id = "wall-config";
|
18
|
-
* options.title = "Wall Configuration";
|
19
17
|
* options.template = "templates/scene/wall-config.html";
|
20
18
|
* options.width = 400;
|
21
19
|
* ```
|
22
20
|
*/
|
23
|
-
static get defaultOptions():
|
21
|
+
static get defaultOptions(): DocumentSheetOptions;
|
22
|
+
|
23
|
+
/**
|
24
|
+
* An array of Wall ids that should all be edited when changes to this config form are submitted
|
25
|
+
* @defaultValue `[]`
|
26
|
+
*/
|
27
|
+
editTargets: string[];
|
24
28
|
|
25
29
|
/** @override */
|
26
30
|
get title(): string;
|
27
31
|
|
28
32
|
/** @override */
|
29
|
-
render(
|
33
|
+
render(
|
34
|
+
force?: boolean,
|
35
|
+
options?: Application.RenderOptions<Options> & {
|
36
|
+
walls?: InstanceType<ConfiguredObjectClassForName<'Wall'>>[] | undefined;
|
37
|
+
}
|
38
|
+
): this;
|
30
39
|
|
31
40
|
/** @override */
|
32
41
|
getData(): Data | Promise<Data>;
|
33
42
|
|
34
43
|
/** @override */
|
35
|
-
protected _updateObject(
|
36
|
-
event: Event,
|
37
|
-
formData: WallConfig.FormData
|
38
|
-
): Promise<InstanceType<ConfiguredDocumentClassForName<'Wall'>> | undefined>;
|
44
|
+
protected _updateObject(event: Event, formData: WallConfig.FormData): Promise<unknown>;
|
39
45
|
}
|
40
46
|
|
41
47
|
namespace WallConfig {
|
42
|
-
interface Data<Options extends
|
43
|
-
|
44
|
-
|
48
|
+
interface Data<Options extends DocumentSheetOptions = DocumentSheetOptions>
|
49
|
+
extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'Wall'>>, Options> {
|
50
|
+
object: DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'Wall'>>, Options>['data'];
|
45
51
|
moveTypes: {
|
46
52
|
[Key in keyof typeof foundry.CONST.WALL_MOVEMENT_TYPES as typeof foundry.CONST.WALL_MOVEMENT_TYPES[Key]]: Titlecase<Key>;
|
47
53
|
};
|
@@ -63,9 +69,10 @@ declare global {
|
|
63
69
|
interface FormData {
|
64
70
|
dir: foundry.CONST.WALL_DIRECTIONS;
|
65
71
|
door: foundry.CONST.WALL_DOOR_TYPES;
|
72
|
+
light: foundry.CONST.WALL_SENSE_TYPES;
|
66
73
|
ds?: foundry.CONST.WALL_DOOR_STATES;
|
67
74
|
move: foundry.CONST.WALL_MOVEMENT_TYPES;
|
68
|
-
|
75
|
+
sight: foundry.CONST.WALL_SENSE_TYPES;
|
69
76
|
sound: foundry.CONST.WALL_SENSE_TYPES;
|
70
77
|
}
|
71
78
|
}
|
@@ -1,13 +1,24 @@
|
|
1
|
+
interface WorldConfigOptions extends FormApplicationOptions {
|
2
|
+
/**
|
3
|
+
* Whether the world is being created or updated.
|
4
|
+
* @defaultValue `false`
|
5
|
+
*/
|
6
|
+
create: boolean;
|
7
|
+
|
8
|
+
inWorld?: boolean | undefined;
|
9
|
+
}
|
10
|
+
|
1
11
|
/**
|
2
12
|
* The World Management setup application
|
3
13
|
* @typeParam Options - The type of the options object
|
4
14
|
* @typeParam Data - The data structure used to render the handlebars template.
|
5
15
|
*/
|
6
16
|
declare class WorldConfig<
|
7
|
-
Options extends
|
17
|
+
Options extends WorldConfigOptions = WorldConfigOptions,
|
8
18
|
Data extends object = WorldConfig.Data
|
9
19
|
> extends FormApplication<Options, Data, Game.WorldData<foundry.packages.WorldData>> {
|
10
20
|
/**
|
21
|
+
* @override
|
11
22
|
* @defaultValue
|
12
23
|
* ```typescript
|
13
24
|
* foundry.utils.mergeObject(super.defaultOptions, {
|
@@ -19,13 +30,16 @@ declare class WorldConfig<
|
|
19
30
|
* })
|
20
31
|
* ```
|
21
32
|
*/
|
22
|
-
static get defaultOptions():
|
33
|
+
static get defaultOptions(): WorldConfigOptions;
|
23
34
|
|
24
35
|
static WORLD_KB_URL: 'https://foundryvtt.com/article/game-worlds/';
|
25
36
|
|
26
37
|
/** @override */
|
27
38
|
get title(): string;
|
28
39
|
|
40
|
+
/** @override */
|
41
|
+
activateListeners(html: JQuery): void;
|
42
|
+
|
29
43
|
/** @override */
|
30
44
|
getData(options?: Partial<Options>): Data | Promise<Data>;
|
31
45
|
|
@@ -40,8 +54,14 @@ declare class WorldConfig<
|
|
40
54
|
*/
|
41
55
|
protected _updateObject(...args: unknown[]): Promise<unknown>;
|
42
56
|
|
57
|
+
/**
|
58
|
+
* Update the world name placeholder when the title is changed.
|
59
|
+
* @internal
|
60
|
+
*/
|
61
|
+
protected _onTitleChange(event: JQuery.TriggeredEvent): void;
|
62
|
+
|
43
63
|
/** @override **/
|
44
|
-
activateEditor(name: string, options?: TextEditor.Options, initialContent?: string): void;
|
64
|
+
activateEditor(name: string, options?: TextEditor.Options | undefined, initialContent?: string | undefined): void;
|
45
65
|
}
|
46
66
|
|
47
67
|
declare namespace WorldConfig {
|
@@ -56,13 +76,4 @@ declare namespace WorldConfig {
|
|
56
76
|
showEditFields: boolean;
|
57
77
|
systems?: Game.SystemData<foundry.packages.SystemData>[];
|
58
78
|
}
|
59
|
-
|
60
|
-
interface Options extends FormApplicationOptions {
|
61
|
-
/**
|
62
|
-
* @defaultValue `false`
|
63
|
-
*/
|
64
|
-
create: boolean;
|
65
|
-
|
66
|
-
inWorld?: boolean;
|
67
|
-
}
|
68
79
|
}
|
@@ -94,11 +94,15 @@ declare global {
|
|
94
94
|
/** @override */
|
95
95
|
activateListeners(html: JQuery): void;
|
96
96
|
|
97
|
+
/** @override */
|
98
|
+
protected _contextMenu(html: JQuery): void;
|
99
|
+
|
97
100
|
/**
|
98
|
-
*
|
99
|
-
* @
|
101
|
+
* Get the Macro entry context options
|
102
|
+
* @returns The Macro entry context options
|
103
|
+
* @internal
|
100
104
|
*/
|
101
|
-
protected
|
105
|
+
protected _getEntryContextOptions(): ContextMenuEntry[];
|
102
106
|
|
103
107
|
/**
|
104
108
|
* Handle left-click events to
|
@@ -1,25 +1,40 @@
|
|
1
1
|
/**
|
2
2
|
* Game Invitation Links Reference
|
3
|
+
*
|
4
|
+
* @typeParam Options - the type of the options object
|
5
|
+
* @typeParam Data - The data structure used to render the handlebars template.
|
3
6
|
*/
|
4
|
-
|
5
|
-
|
7
|
+
declare class InvitationLinks<
|
8
|
+
Options extends ApplicationOptions = ApplicationOptions,
|
9
|
+
Data extends object = InvitationLinks.Data
|
10
|
+
> extends Application<Options> {
|
6
11
|
/**
|
12
|
+
* @override
|
7
13
|
* @defaultValue
|
8
14
|
* ```typescript
|
9
|
-
* {
|
10
|
-
*
|
11
|
-
*
|
12
|
-
* template: 'templates/sidebar/apps/invitation-links.html',
|
15
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
16
|
+
* id: "invitation-links",
|
17
|
+
* template: "templates/sidebar/apps/invitation-links.html",
|
13
18
|
* title: game.i18n.localize("INVITATIONS.Title"),
|
14
|
-
* width: 400
|
15
|
-
* }
|
19
|
+
* width: 400
|
20
|
+
* })
|
16
21
|
* ```
|
17
22
|
*/
|
18
|
-
static get defaultOptions():
|
23
|
+
static get defaultOptions(): ApplicationOptions;
|
19
24
|
|
20
25
|
/** @override */
|
21
|
-
getData(
|
26
|
+
getData(options?: Partial<Options> | undefined): Promise<Data>;
|
22
27
|
|
23
28
|
/** @override */
|
24
29
|
activateListeners(html: JQuery): void;
|
25
30
|
}
|
31
|
+
|
32
|
+
declare namespace InvitationLinks {
|
33
|
+
type Adddresses = Game.Data['addresses'];
|
34
|
+
interface Data extends Adddresses {
|
35
|
+
remoteClass?: string;
|
36
|
+
remoteTitle?: string;
|
37
|
+
failedCheck?: boolean;
|
38
|
+
canConnect?: boolean;
|
39
|
+
}
|
40
|
+
}
|
@@ -91,7 +91,10 @@ declare global {
|
|
91
91
|
*/
|
92
92
|
protected _onToggleNav(event: JQuery.ClickEvent): void;
|
93
93
|
|
94
|
-
|
94
|
+
/**
|
95
|
+
* Display progress of some major operation like loading Scene textures.
|
96
|
+
*/
|
97
|
+
static displayProgressBar(options: SceneNavigation.DisplayProgressBarOptions): void;
|
95
98
|
}
|
96
99
|
|
97
100
|
namespace SceneNavigation {
|
@@ -104,5 +107,17 @@ declare global {
|
|
104
107
|
css: string;
|
105
108
|
})[];
|
106
109
|
}
|
110
|
+
|
111
|
+
interface DisplayProgressBarOptions {
|
112
|
+
/**
|
113
|
+
* A text label to display
|
114
|
+
*/
|
115
|
+
label?: string | undefined;
|
116
|
+
|
117
|
+
/**
|
118
|
+
* A percentage of progress between 0 and 100
|
119
|
+
*/
|
120
|
+
pct: number;
|
121
|
+
}
|
107
122
|
}
|
108
123
|
}
|
@@ -84,6 +84,13 @@ declare class Sidebar<Options extends ApplicationOptions = ApplicationOptions> e
|
|
84
84
|
*/
|
85
85
|
protected _onChangeTab(event: MouseEvent | null, tabs: Tabs, active: string): void;
|
86
86
|
|
87
|
+
/**
|
88
|
+
* Handle the special case of left-clicking a tab when the sidebar is collapsed.
|
89
|
+
* @param event - The originating click event
|
90
|
+
* @internal
|
91
|
+
*/
|
92
|
+
protected _onLeftClickTab(event: MouseEvent): void;
|
93
|
+
|
87
94
|
/**
|
88
95
|
* Handle right-click events on tab controls to trigger pop-out containers for each tab
|
89
96
|
* @param event - The originating contextmenu event
|