@league-of-foundry-developers/foundry-vtt-types 9.242.0 → 9.249.2
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/package.json +1 -1
- package/src/foundry/common/abstract/document.mjs.d.ts +13 -6
- package/src/foundry/common/config.mjs/releaseData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/actorData.d.ts +1 -1
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +14 -12
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +62 -16
- package/src/foundry/common/data/data.mjs/animationData.d.ts +13 -5
- package/src/foundry/common/data/data.mjs/cardData.d.ts +4 -4
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +3 -3
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/combatData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/folderData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/lightData.d.ts +7 -5
- package/src/foundry/common/data/data.mjs/macroData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/noteData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +6 -4
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/settingData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/tileData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/userData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/videoData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/wallData.d.ts +4 -2
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +15 -12
- package/src/foundry/common/documents.mjs/baseActor.d.ts +24 -21
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +14 -12
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseCard.d.ts +27 -28
- package/src/foundry/common/documents.mjs/baseCards.d.ts +18 -16
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +24 -17
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +21 -20
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +25 -18
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +26 -23
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +19 -17
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +14 -12
- package/src/foundry/common/documents.mjs/baseItem.d.ts +25 -19
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +21 -18
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +34 -18
- package/src/foundry/common/documents.mjs/baseNote.d.ts +20 -14
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +16 -14
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseScene.d.ts +23 -21
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +18 -16
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +27 -19
- package/src/foundry/common/documents.mjs/baseTile.d.ts +17 -11
- package/src/foundry/common/documents.mjs/baseToken.d.ts +20 -16
- package/src/foundry/common/documents.mjs/baseUser.d.ts +45 -11
- package/src/foundry/common/documents.mjs/baseWall.d.ts +17 -15
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +3 -1
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +4 -2
- package/src/foundry/common/packages.mjs/packageData.d.ts +3 -4
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +3 -1
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +3 -1
- package/src/foundry/common/utils/primitives.mjs.d.ts +8 -1
- package/src/foundry/foundry.js/application.d.ts +139 -111
- package/src/foundry/foundry.js/applications/basePlaceableHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/drawingHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/tileHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/tokenHUD.d.ts +3 -3
- package/src/foundry/foundry.js/applications/cameraViews.d.ts +2 -2
- package/src/foundry/foundry.js/applications/chatPopout.d.ts +3 -3
- package/src/foundry/foundry.js/applications/compendium.d.ts +2 -2
- package/src/foundry/foundry.js/applications/dialog.d.ts +1 -1
- package/src/foundry/foundry.js/applications/filePicker.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplication.d.ts +45 -14
- package/src/foundry/foundry.js/applications/formApplications/avConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +20 -31
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +5 -5
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/combatantConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/journalSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/macroConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistSoundConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +7 -7
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +5 -5
- package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/permissionConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/frameViewer.d.ts +1 -1
- package/src/foundry/foundry.js/applications/headsUpDisplay.d.ts +2 -2
- package/src/foundry/foundry.js/applications/hotbar.d.ts +2 -2
- package/src/foundry/foundry.js/applications/mainMenu.d.ts +2 -2
- package/src/foundry/foundry.js/applications/notifications.d.ts +7 -4
- package/src/foundry/foundry.js/applications/pause.d.ts +2 -2
- package/src/foundry/foundry.js/applications/playerList.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sceneControls.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +3 -3
- package/src/foundry/foundry.js/applications/sidebar.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTab.d.ts +4 -7
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/combatTracker.d.ts +26 -28
- package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/settings.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/avSettings.d.ts +11 -0
- package/src/foundry/foundry.js/canvas.d.ts +5 -0
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +38 -35
- package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/actor.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/card.d.ts +2 -1
- package/src/foundry/foundry.js/clientDocuments/cards.d.ts +1 -6
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +5 -5
- package/src/foundry/foundry.js/clientDocuments/folder.d.ts +15 -9
- package/src/foundry/foundry.js/clientDocuments/item.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/scene.d.ts +39 -38
- package/src/foundry/foundry.js/clientDocuments/user.d.ts +27 -35
- package/src/foundry/foundry.js/clientSettings.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollection.d.ts +66 -12
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +78 -67
- package/src/foundry/foundry.js/collections/documentCollections/worldCollection.d.ts +73 -32
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/actors.d.ts +3 -37
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/combatEncounters.d.ts +5 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/fogExplorations.d.ts +0 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts +2 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/items.d.ts +1 -22
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/journal.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/macros.d.ts +3 -8
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/messages.d.ts +7 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +5 -5
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/rollTables.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/scenes.d.ts +3 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/users.d.ts +7 -4
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/worldSettings.d.ts +2 -2
- package/src/foundry/foundry.js/config.d.ts +5 -2
- package/src/foundry/foundry.js/dragDrop.d.ts +27 -34
- package/src/foundry/foundry.js/hooks.d.ts +3 -3
- package/src/foundry/foundry.js/pixi/containers/ruler.d.ts +18 -7
- package/src/foundry/foundry.js/pixi/index.d.ts +2 -0
- package/src/foundry/foundry.js/pixi/meshes/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/meshes/samplerMesh.d.ts +22 -0
- package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +9 -1
- package/src/foundry/foundry.js/pixi/rectangles/normalizedRectangle.d.ts +7 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/transforms/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/transforms/synchronizedTransform.d.ts +38 -0
- package/src/foundry/foundry.js/pointSources/lightSource.d.ts +1 -1
- package/src/foundry/foundry.js/pointSources/soundSource.d.ts +1 -1
- package/src/foundry/foundry.js/pointSources/visionSource.d.ts +1 -1
- package/src/foundry/foundry.js/polygonEdge.d.ts +1 -1
- package/src/foundry/foundry.js/quadtree.d.ts +2 -2
- package/src/foundry/foundry.js/ray.d.ts +1 -1
- package/src/foundry/foundry.js/roll.d.ts +13 -11
- package/src/foundry/foundry.js/searchFilter.d.ts +37 -33
- package/src/foundry/foundry.js/textureLoader.d.ts +28 -18
- package/src/foundry/foundry.js/textureUtils.d.ts +5 -8
- package/src/foundry/foundry.js/videoHelper.d.ts +2 -1
- package/src/types/helperTypes.d.ts +31 -13
@@ -7,7 +7,7 @@ declare global {
|
|
7
7
|
* @typeParam Data - The data structure used to render the handlebars template.
|
8
8
|
*/
|
9
9
|
class UserConfig<
|
10
|
-
Options extends
|
10
|
+
Options extends DocumentSheetOptions = UserConfig.Options,
|
11
11
|
Data extends object = UserConfig.Data<Options>
|
12
12
|
> extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClass<typeof User>>> {
|
13
13
|
/**
|
@@ -48,32 +48,32 @@ declare global {
|
|
48
48
|
}
|
49
49
|
|
50
50
|
namespace UserConfig {
|
51
|
-
interface Data<Options extends
|
51
|
+
interface Data<Options extends DocumentSheetOptions> {
|
52
52
|
user: InstanceType<ConfiguredDocumentClass<typeof User>>;
|
53
53
|
actors: InstanceType<ConfiguredDocumentClass<typeof Actor>>[];
|
54
54
|
options: Options;
|
55
55
|
}
|
56
56
|
|
57
|
-
interface Options extends
|
57
|
+
interface Options extends DocumentSheetOptions {
|
58
58
|
/**
|
59
59
|
* @defaultValue `["sheet", "user-config"]`
|
60
60
|
*/
|
61
|
-
classes:
|
61
|
+
classes: DocumentSheetOptions['classes'];
|
62
62
|
|
63
63
|
/**
|
64
64
|
* @defaultValue `"templates/user/user-config.html"`
|
65
65
|
*/
|
66
|
-
template:
|
66
|
+
template: DocumentSheetOptions['template'];
|
67
67
|
|
68
68
|
/**
|
69
69
|
* @defaultValue `400`
|
70
70
|
*/
|
71
|
-
width:
|
71
|
+
width: DocumentSheetOptions['width'];
|
72
72
|
|
73
73
|
/**
|
74
74
|
* @defaultValue `auto`
|
75
75
|
*/
|
76
|
-
height:
|
76
|
+
height: DocumentSheetOptions['height'];
|
77
77
|
}
|
78
78
|
}
|
79
79
|
}
|
@@ -94,7 +94,7 @@ declare global {
|
|
94
94
|
z: number | null;
|
95
95
|
}
|
96
96
|
|
97
|
-
interface Options extends
|
97
|
+
interface Options extends FormApplicationOptions {
|
98
98
|
/**
|
99
99
|
* Configure the default drawing settings, instead of a specific Drawing
|
100
100
|
* @defaultValue `false`
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam ConcreteDocument - The type of the Document which is being managed
|
9
9
|
*/
|
10
10
|
class EntitySheetConfig<
|
11
|
-
Options extends
|
11
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
12
12
|
Data extends object = EntitySheetConfig.Data<foundry.abstract.Document<any, any>, Options>,
|
13
13
|
ConcreteDocument extends foundry.abstract.Document<any, any> = Data extends EntitySheetConfig.Data<infer T>
|
14
14
|
? T
|
@@ -24,7 +24,7 @@ declare global {
|
|
24
24
|
* })
|
25
25
|
* ```
|
26
26
|
*/
|
27
|
-
static get defaultOptions():
|
27
|
+
static get defaultOptions(): FormApplicationOptions;
|
28
28
|
|
29
29
|
/**
|
30
30
|
* An array of pending sheet assignments which are submitted before other elements of the framework are ready.
|
@@ -64,7 +64,7 @@ declare global {
|
|
64
64
|
static registerSheet(
|
65
65
|
documentClass: DocumentConstructor,
|
66
66
|
scope: string,
|
67
|
-
sheetClass: ConstructorOf<
|
67
|
+
sheetClass: ConstructorOf<FormApplication<FormApplicationOptions, any, any>>,
|
68
68
|
{ label, types, makeDefault }?: EntitySheetConfig.RegisterSheetOptions
|
69
69
|
): void;
|
70
70
|
|
@@ -91,7 +91,7 @@ declare global {
|
|
91
91
|
static unregisterSheet(
|
92
92
|
documentClass: DocumentConstructor,
|
93
93
|
scope: string,
|
94
|
-
sheetClass: ConstructorOf<
|
94
|
+
sheetClass: ConstructorOf<FormApplication<FormApplicationOptions, any, any>>,
|
95
95
|
{ types }?: { types?: string[] }
|
96
96
|
): void;
|
97
97
|
|
@@ -137,7 +137,7 @@ declare global {
|
|
137
137
|
*/
|
138
138
|
interface Data<
|
139
139
|
ConcreteDocument extends foundry.abstract.Document<any, any>,
|
140
|
-
Options extends
|
140
|
+
Options extends FormApplicationOptions = FormApplicationOptions
|
141
141
|
> {
|
142
142
|
isGM: boolean;
|
143
143
|
object: foundry.utils.Duplicated<ConcreteDocument['data']>;
|
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
* A tool for fine tuning the grid in a Scene
|
6
6
|
* @typeParam Options - the type of the options object
|
7
7
|
*/
|
8
|
-
class GridConfig<Options extends
|
8
|
+
class GridConfig<Options extends FormApplicationOptions = FormApplicationOptions> extends FormApplication<
|
9
9
|
Options,
|
10
10
|
GridConfig.Data,
|
11
11
|
InstanceType<ConfiguredDocumentClass<typeof Scene>>
|
@@ -91,7 +91,7 @@ declare class ImagePopout extends FormApplication<ImagePopout.Options, ImagePopo
|
|
91
91
|
}
|
92
92
|
|
93
93
|
declare namespace ImagePopout {
|
94
|
-
interface Options extends
|
94
|
+
interface Options extends FormApplicationOptions {
|
95
95
|
/**
|
96
96
|
* @defaultValue `'templates/apps/image-popout.html'`
|
97
97
|
*/
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Allows for viewing and editing of Keybinding Actions
|
3
3
|
*/
|
4
4
|
declare class KeybindingsConfig<
|
5
|
-
Options extends
|
5
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
6
6
|
Data extends KeybindingsConfig.Data = KeybindingsConfig.Data
|
7
7
|
> extends FormApplication<Options, Data> {
|
8
8
|
/**
|
@@ -37,7 +37,7 @@ declare class KeybindingsConfig<
|
|
37
37
|
* })
|
38
38
|
* ```
|
39
39
|
*/
|
40
|
-
static get defaultOptions():
|
40
|
+
static get defaultOptions(): FormApplicationOptions;
|
41
41
|
|
42
42
|
/**
|
43
43
|
* @param options - (unused)
|
@@ -7,7 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
|
9
9
|
declare class ModuleManagement<
|
10
|
-
Options extends
|
10
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
11
11
|
Data extends object = ModuleManagement.Data
|
12
12
|
> extends FormApplication<Options, Data, undefined> {
|
13
13
|
/**
|
@@ -50,7 +50,7 @@ declare class ModuleManagement<
|
|
50
50
|
* });
|
51
51
|
* ```
|
52
52
|
*/
|
53
|
-
static get defaultOptions():
|
53
|
+
static get defaultOptions(): FormApplicationOptions;
|
54
54
|
|
55
55
|
/** @override */
|
56
56
|
get isEditable(): boolean;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* An application for configuring the permissions which are available to each User role.
|
3
3
|
*/
|
4
|
-
declare class PermissionConfig extends FormApplication<
|
4
|
+
declare class PermissionConfig extends FormApplication<FormApplicationOptions, PermissionConfig.Data> {
|
5
5
|
/**
|
6
6
|
* @override
|
7
7
|
* @defaultValue
|
@@ -23,7 +23,7 @@ declare class PermissionConfig extends FormApplication<FormApplication.Options,
|
|
23
23
|
* @param options - (unused)
|
24
24
|
* @override
|
25
25
|
*/
|
26
|
-
getData(options?: Partial<
|
26
|
+
getData(options?: Partial<FormApplicationOptions>): PermissionConfig.Data;
|
27
27
|
|
28
28
|
/**
|
29
29
|
* Prepare the permissions object used to render the configuration template
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam Data - The data structure used to render the handlebars template.
|
9
9
|
*/
|
10
10
|
class SettingsConfig<
|
11
|
-
Options extends
|
11
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
12
12
|
Data extends object = SettingsConfig.Data
|
13
13
|
> extends FormApplication<Options, Data> {
|
14
14
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ConfiguredDocumentClassForName } from '../../../../types/helperTypes';
|
2
|
-
import type { TokenDataConstructorData } from '../../../common/data/data.mjs/tokenData
|
2
|
+
import type { TokenDataConstructorData } from '../../../common/data/data.mjs/tokenData';
|
3
3
|
|
4
4
|
declare global {
|
5
5
|
/**
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam Data - The data structure used to render the handlebars template.
|
9
9
|
*/
|
10
10
|
class TokenConfig<
|
11
|
-
Options extends
|
11
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
12
12
|
Data extends object = TokenConfig.Data<Options>
|
13
13
|
> extends FormApplication<
|
14
14
|
Options,
|
@@ -37,7 +37,7 @@ declare global {
|
|
37
37
|
* })
|
38
38
|
* ```
|
39
39
|
*/
|
40
|
-
static get defaultOptions():
|
40
|
+
static get defaultOptions(): FormApplicationOptions;
|
41
41
|
|
42
42
|
/** @override */
|
43
43
|
get id(): string;
|
@@ -103,7 +103,7 @@ declare global {
|
|
103
103
|
value: string[][];
|
104
104
|
}
|
105
105
|
|
106
|
-
interface Data<Options extends
|
106
|
+
interface Data<Options extends FormApplicationOptions = FormApplicationOptions> {
|
107
107
|
cssClasses: string;
|
108
108
|
isPrototype: boolean;
|
109
109
|
hasAlternates: boolean;
|
@@ -7,7 +7,7 @@ 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 FormApplicationOptions = FormApplicationOptions,
|
11
11
|
Data extends object = WallConfig.Data<Options>
|
12
12
|
> extends FormApplication<Options, Data, InstanceType<ConfiguredDocumentClassForName<'Wall'>>> {
|
13
13
|
/**
|
@@ -20,7 +20,7 @@ declare global {
|
|
20
20
|
* options.width = 400;
|
21
21
|
* ```
|
22
22
|
*/
|
23
|
-
static get defaultOptions():
|
23
|
+
static get defaultOptions(): FormApplicationOptions;
|
24
24
|
|
25
25
|
/** @override */
|
26
26
|
get title(): string;
|
@@ -39,7 +39,7 @@ declare global {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
namespace WallConfig {
|
42
|
-
interface Data<Options extends
|
42
|
+
interface Data<Options extends FormApplicationOptions = FormApplicationOptions> {
|
43
43
|
object: foundry.data.WallData['_source'];
|
44
44
|
options: Options;
|
45
45
|
moveTypes: {
|
@@ -21,7 +21,7 @@ declare class FrameViewer extends Application {
|
|
21
21
|
static get defaultOptions(): typeof Application['defaultOptions'];
|
22
22
|
|
23
23
|
/** @override */
|
24
|
-
getData(options?: Partial<
|
24
|
+
getData(options?: Partial<ApplicationOptions>): Promise<{ src: string }>;
|
25
25
|
|
26
26
|
/** @override */
|
27
27
|
close(options?: Application.CloseOptions): ReturnType<Application['close']>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Render the HUD container
|
3
3
|
* @typeParam Options - the type of the options object
|
4
4
|
*/
|
5
|
-
declare class HeadsUpDisplay<Options extends
|
5
|
+
declare class HeadsUpDisplay<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
6
6
|
/**
|
7
7
|
* Token HUD
|
8
8
|
*/
|
@@ -34,7 +34,7 @@ declare class HeadsUpDisplay<Options extends Application.Options = Application.O
|
|
34
34
|
* })
|
35
35
|
* ```
|
36
36
|
*/
|
37
|
-
static get defaultOptions():
|
37
|
+
static get defaultOptions(): ApplicationOptions;
|
38
38
|
|
39
39
|
/** @override */
|
40
40
|
getData(options?: Partial<Options>): {} | { width: number; height: number };
|
@@ -16,7 +16,7 @@ declare global {
|
|
16
16
|
*
|
17
17
|
* @typeParam Options - the type of the options object
|
18
18
|
*/
|
19
|
-
class Hotbar<Options extends
|
19
|
+
class Hotbar<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
20
20
|
constructor(options?: Partial<Options>);
|
21
21
|
|
22
22
|
/**
|
@@ -55,7 +55,7 @@ declare global {
|
|
55
55
|
* })
|
56
56
|
* ```
|
57
57
|
*/
|
58
|
-
static get defaultOptions():
|
58
|
+
static get defaultOptions(): ApplicationOptions;
|
59
59
|
|
60
60
|
/** @override */
|
61
61
|
getData(options?: Partial<Options>): Hotbar.Data | Promise<Hotbar.Data>;
|
@@ -14,7 +14,7 @@ declare class MainMenu extends Application {
|
|
14
14
|
* }
|
15
15
|
* ```
|
16
16
|
* */
|
17
|
-
static get defaultOptions():
|
17
|
+
static get defaultOptions(): ApplicationOptions;
|
18
18
|
|
19
19
|
/**
|
20
20
|
* The structure of menu items
|
@@ -54,7 +54,7 @@ declare class MainMenu extends Application {
|
|
54
54
|
* @override
|
55
55
|
* @param options - (unused)
|
56
56
|
*/
|
57
|
-
getData(options?: Partial<
|
57
|
+
getData(options?: Partial<ApplicationOptions>): { items: MainMenu.MenuStructure };
|
58
58
|
|
59
59
|
/** @override */
|
60
60
|
activateListeners(html: JQuery): void;
|
@@ -13,7 +13,7 @@
|
|
13
13
|
*
|
14
14
|
* @typeParam Options - the type of the options object
|
15
15
|
*/
|
16
|
-
declare class Notifications<Options extends
|
16
|
+
declare class Notifications<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
17
17
|
constructor(options?: Partial<Options>);
|
18
18
|
|
19
19
|
/**
|
@@ -39,15 +39,18 @@ declare class Notifications<Options extends Application.Options = Application.Op
|
|
39
39
|
* });
|
40
40
|
* ```
|
41
41
|
*/
|
42
|
-
static get defaultOptions():
|
42
|
+
static get defaultOptions(): ApplicationOptions;
|
43
43
|
|
44
44
|
/**
|
45
45
|
* Initialize the Notifications system by displaying any system-generated messages which were passed from the server.
|
46
46
|
*/
|
47
47
|
initialize(): void;
|
48
48
|
|
49
|
-
/**
|
50
|
-
|
49
|
+
/**
|
50
|
+
* @override
|
51
|
+
* @remarks This return a `JQuery`, which is incompatible with the expected `Promise<JQuery>` (see https://gitlab.com/foundrynet/foundryvtt/-/issues/6554).
|
52
|
+
*/
|
53
|
+
protected _renderInner(data: object): any;
|
51
54
|
|
52
55
|
/** @override */
|
53
56
|
protected _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
@@ -5,10 +5,10 @@
|
|
5
5
|
* @typeParam Data - The data structure used to render the handlebars template.
|
6
6
|
*/
|
7
7
|
declare class Pause<
|
8
|
-
Options extends
|
8
|
+
Options extends ApplicationOptions = ApplicationOptions,
|
9
9
|
Data extends object = Pause.Data
|
10
10
|
> extends Application<Options> {
|
11
|
-
static get defaultOptions():
|
11
|
+
static get defaultOptions(): ApplicationOptions;
|
12
12
|
|
13
13
|
/** @override */
|
14
14
|
getData(options?: Partial<Options>): Data | Promise<Data>;
|
@@ -6,7 +6,7 @@ declare global {
|
|
6
6
|
*
|
7
7
|
* @typeParam Options - the type of the options object
|
8
8
|
*/
|
9
|
-
class PlayerList<Options extends
|
9
|
+
class PlayerList<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
10
10
|
constructor(options?: Partial<Options>);
|
11
11
|
|
12
12
|
/**
|
@@ -25,7 +25,7 @@ declare global {
|
|
25
25
|
* })
|
26
26
|
* ```
|
27
27
|
*/
|
28
|
-
static get defaultOptions():
|
28
|
+
static get defaultOptions(): ApplicationOptions;
|
29
29
|
|
30
30
|
/** @override */
|
31
31
|
render(force?: boolean, options?: Application.RenderOptions<Options>): this;
|
@@ -33,7 +33,7 @@ interface SceneControl {
|
|
33
33
|
* Scene controls navigation menu
|
34
34
|
* @typeParam Options - the type of the options object
|
35
35
|
*/
|
36
|
-
declare class SceneControls<Options extends
|
36
|
+
declare class SceneControls<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
37
37
|
constructor(options?: Partial<Options>);
|
38
38
|
|
39
39
|
/**
|
@@ -118,7 +118,7 @@ declare class SceneControls<Options extends Application.Options = Application.Op
|
|
118
118
|
}
|
119
119
|
|
120
120
|
declare namespace SceneControls {
|
121
|
-
export interface Options extends
|
121
|
+
export interface Options extends ApplicationOptions {
|
122
122
|
/**
|
123
123
|
* @defaultValue `100`
|
124
124
|
*/
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam Data - The data structure used to render the handlebars template.
|
9
9
|
*/
|
10
10
|
class SceneNavigation<
|
11
|
-
Options extends
|
11
|
+
Options extends ApplicationOptions = ApplicationOptions,
|
12
12
|
Data extends object = SceneNavigation.Data
|
13
13
|
> extends Application<Options> {
|
14
14
|
constructor(options?: Partial<Options>);
|
@@ -31,7 +31,7 @@ declare global {
|
|
31
31
|
* })
|
32
32
|
* ```
|
33
33
|
*/
|
34
|
-
static get defaultOptions():
|
34
|
+
static get defaultOptions(): ApplicationOptions;
|
35
35
|
|
36
36
|
/**
|
37
37
|
* Return an Array of Scenes which are displayed in the Navigation bar
|
@@ -45,7 +45,7 @@ declare global {
|
|
45
45
|
protected _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
46
46
|
|
47
47
|
/** @override */
|
48
|
-
getData(options?: Partial<
|
48
|
+
getData(options?: Partial<ApplicationOptions>): Data | Promise<Data>;
|
49
49
|
|
50
50
|
/**
|
51
51
|
* Expand the SceneNavigation menu, sliding it down if it is currently collapsed
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Render the Sidebar container, and after rendering insert Sidebar tabs.
|
3
3
|
* @typeParam Options - the type of the options object
|
4
4
|
*/
|
5
|
-
declare class Sidebar<Options extends
|
5
|
+
declare class Sidebar<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
6
6
|
/**
|
7
7
|
* Singleton application instances for each sidebar tab
|
8
8
|
* @defaultValue `{}`
|
@@ -29,7 +29,7 @@ declare class Sidebar<Options extends Application.Options = Application.Options>
|
|
29
29
|
* }
|
30
30
|
* ```
|
31
31
|
*/
|
32
|
-
static get defaultOptions():
|
32
|
+
static get defaultOptions(): ApplicationOptions;
|
33
33
|
|
34
34
|
/**
|
35
35
|
* Return the name of the active Sidebar tab
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* @typeParam Options - The type of the options object
|
4
4
|
*/
|
5
5
|
declare abstract class SidebarTab<
|
6
|
-
Options extends
|
6
|
+
Options extends ApplicationOptions = ApplicationOptions
|
7
7
|
> extends Application<Options> {
|
8
8
|
constructor(...args: ConstructorParameters<typeof Application>);
|
9
9
|
/**
|
@@ -36,16 +36,13 @@ declare abstract class SidebarTab<
|
|
36
36
|
* });
|
37
37
|
* ```
|
38
38
|
*/
|
39
|
-
static get defaultOptions():
|
40
|
-
|
41
|
-
/** @override */
|
42
|
-
protected _renderInner(data: object): Promise<JQuery>;
|
39
|
+
static get defaultOptions(): ApplicationOptions;
|
43
40
|
|
44
41
|
/** @override */
|
45
42
|
protected _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
46
43
|
|
47
|
-
/**
|
48
|
-
|
44
|
+
/** @override */
|
45
|
+
protected _renderInner(data: object): Promise<JQuery>;
|
49
46
|
|
50
47
|
/**
|
51
48
|
* Activate this SidebarTab, switching focus to it
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ConfiguredDocumentClass } from '../../../../types/helperTypes';
|
2
|
-
import type { ChatMessageDataConstructorData } from '../../../common/data/data.mjs/chatMessageData
|
2
|
+
import type { ChatMessageDataConstructorData } from '../../../common/data/data.mjs/chatMessageData';
|
3
3
|
|
4
4
|
declare global {
|
5
5
|
/**
|
@@ -302,7 +302,7 @@ declare global {
|
|
302
302
|
isStream: boolean;
|
303
303
|
}
|
304
304
|
|
305
|
-
interface Options extends
|
305
|
+
interface Options extends ApplicationOptions {
|
306
306
|
/**
|
307
307
|
* @defaultValue `'chat'`
|
308
308
|
*/
|
@@ -4,7 +4,7 @@ declare global {
|
|
4
4
|
/**
|
5
5
|
* The sidebar directory which organizes and displays world-level Combat documents.
|
6
6
|
*/
|
7
|
-
class CombatTracker<Options extends
|
7
|
+
class CombatTracker<Options extends ApplicationOptions = ApplicationOptions> extends SidebarTab<Options> {
|
8
8
|
constructor(options?: Partial<Options>);
|
9
9
|
|
10
10
|
/**
|
@@ -20,13 +20,23 @@ declare global {
|
|
20
20
|
*/
|
21
21
|
viewed: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Combat>>> | null;
|
22
22
|
|
23
|
-
/**
|
24
|
-
|
23
|
+
/**
|
24
|
+
* @defaultValue
|
25
|
+
* ```typescript
|
26
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
27
|
+
* id: "combat",
|
28
|
+
* template: "templates/sidebar/combat-tracker.html",
|
29
|
+
* title: "COMBAT.SidebarTitle",
|
30
|
+
* scrollY: [".directory-list"]
|
31
|
+
* })
|
32
|
+
* ```
|
33
|
+
*/
|
34
|
+
static get defaultOptions(): ApplicationOptions;
|
25
35
|
|
26
36
|
/**
|
27
37
|
* Return an array of Combat encounters which occur within the current Scene.
|
28
38
|
*/
|
29
|
-
get combats():
|
39
|
+
get combats(): StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Combat>>>[];
|
30
40
|
|
31
41
|
/** @override */
|
32
42
|
createPopout(): this;
|
@@ -115,6 +125,12 @@ declare global {
|
|
115
125
|
*/
|
116
126
|
protected _onCombatantHoverOut(event: JQuery.MouseLeaveEvent): void;
|
117
127
|
|
128
|
+
/**
|
129
|
+
* Highlight a hovered combatant in the tracker.
|
130
|
+
* @param combatant - The Combatant
|
131
|
+
* @param hover - Whether they are being hovered in or out.
|
132
|
+
*/
|
133
|
+
hoverCombatant(combatant: InstanceType<ConfiguredDocumentClass<typeof Combatant>>, hover: boolean): void;
|
118
134
|
/**
|
119
135
|
* Attach context menu options to elements in the tracker
|
120
136
|
* @param html - The HTML element to which context options are attached
|
@@ -123,8 +139,8 @@ declare global {
|
|
123
139
|
protected _contextMenu(html: JQuery): void;
|
124
140
|
|
125
141
|
/**
|
126
|
-
* Get the
|
127
|
-
* @returns The
|
142
|
+
* Get the Combatant entry context options
|
143
|
+
* @returns The Combatant entry context options
|
128
144
|
* @internal
|
129
145
|
*/
|
130
146
|
protected _getEntryContextOptions(): ContextMenuEntry[];
|
@@ -144,6 +160,8 @@ declare global {
|
|
144
160
|
combatCount: number;
|
145
161
|
started: boolean;
|
146
162
|
settings: ClientSettings.Values[`core.${typeof Combat.CONFIG_SETTING}`];
|
163
|
+
linked: boolean;
|
164
|
+
labels: { scoped: string };
|
147
165
|
currentIndex: -1;
|
148
166
|
hasCombat: false;
|
149
167
|
combat: null;
|
@@ -158,6 +176,8 @@ declare global {
|
|
158
176
|
combatCount: number;
|
159
177
|
started: boolean;
|
160
178
|
settings: ClientSettings.Values[`core.${typeof Combat.CONFIG_SETTING}`];
|
179
|
+
linked: boolean;
|
180
|
+
labels: { scoped: string };
|
161
181
|
currentIndex: number;
|
162
182
|
hasCombat: true;
|
163
183
|
combat: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Combat>>>;
|
@@ -184,27 +204,5 @@ declare global {
|
|
184
204
|
css: string;
|
185
205
|
effects: Set<string>;
|
186
206
|
};
|
187
|
-
|
188
|
-
interface Options extends Application.Options {
|
189
|
-
/**
|
190
|
-
* @defaultValue `'combat'`
|
191
|
-
*/
|
192
|
-
id: string;
|
193
|
-
|
194
|
-
/**
|
195
|
-
* @defaultValue `'templates/sidebar/combat-tracker.html'`
|
196
|
-
*/
|
197
|
-
template: string;
|
198
|
-
|
199
|
-
/**
|
200
|
-
* @defaultValue `'Combat Tracker'`
|
201
|
-
*/
|
202
|
-
title: string;
|
203
|
-
|
204
|
-
/**
|
205
|
-
* @defaultValue `['.directory-list']`
|
206
|
-
*/
|
207
|
-
scrollY: string[];
|
208
|
-
}
|
209
207
|
}
|
210
208
|
}
|
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
* A compendium of knowledge arcane and mystical!
|
6
6
|
* @typeParam Options - The type of the options object
|
7
7
|
*/
|
8
|
-
class CompendiumDirectory<Options extends
|
8
|
+
class CompendiumDirectory<Options extends ApplicationOptions = ApplicationOptions> extends SidebarTab<Options> {
|
9
9
|
/**
|
10
10
|
* @override
|
11
11
|
* @defaultValue
|
@@ -17,7 +17,7 @@ declare global {
|
|
17
17
|
* });
|
18
18
|
* ```
|
19
19
|
*/
|
20
|
-
static get defaultOptions():
|
20
|
+
static get defaultOptions(): ApplicationOptions;
|
21
21
|
|
22
22
|
/**
|
23
23
|
* @param options - (unused)
|
@@ -6,7 +6,7 @@ declare global {
|
|
6
6
|
* The Settings sidebar is the furthest-to-right using a triple-cogs icon.
|
7
7
|
* @typeParam Options - The type of the options object
|
8
8
|
*/
|
9
|
-
class Settings<Options extends
|
9
|
+
class Settings<Options extends ApplicationOptions = ApplicationOptions> extends SidebarTab<Options> {
|
10
10
|
/**
|
11
11
|
* @override
|
12
12
|
* @defaultValue
|
@@ -18,7 +18,7 @@ declare global {
|
|
18
18
|
* })
|
19
19
|
* ```
|
20
20
|
*/
|
21
|
-
static get defaultOptions():
|
21
|
+
static get defaultOptions(): ApplicationOptions;
|
22
22
|
|
23
23
|
/**
|
24
24
|
* @param options - (unused)
|