@league-of-foundry-developers/foundry-vtt-types 0.8.9-6 → 9.238.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 +44 -27
- package/index-lenient.d.ts +10 -0
- package/index.d.ts +2 -2
- package/package.json +43 -15
- package/src/foundry/common/abstract/backend.mjs.d.ts +14 -15
- package/src/foundry/common/abstract/document.mjs.d.ts +30 -12
- package/src/foundry/common/config.mjs/index.d.ts +1 -0
- package/src/foundry/common/config.mjs/releaseData.d.ts +98 -0
- package/src/foundry/common/constants.mjs.d.ts +402 -213
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +36 -29
- package/src/foundry/common/data/data.mjs/actorData.d.ts +32 -21
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +165 -0
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +45 -124
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +49 -77
- package/src/foundry/common/data/data.mjs/animationData.d.ts +17 -9
- package/src/foundry/common/data/data.mjs/cardData.d.ts +265 -0
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +66 -0
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +238 -0
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +51 -39
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +18 -11
- package/src/foundry/common/data/data.mjs/combatData.d.ts +51 -25
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +48 -30
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +8 -7
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +72 -66
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +21 -25
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +24 -23
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +23 -16
- package/src/foundry/common/data/data.mjs/folderData.d.ts +28 -25
- package/src/foundry/common/data/data.mjs/index.d.ts +5 -0
- package/src/foundry/common/data/data.mjs/itemData.d.ts +26 -18
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +21 -20
- package/src/foundry/common/data/data.mjs/lightData.d.ts +228 -0
- package/src/foundry/common/data/data.mjs/macroData.d.ts +52 -35
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +41 -38
- package/src/foundry/common/data/data.mjs/noteData.d.ts +47 -37
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +55 -26
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +32 -16
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +7 -11
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +30 -24
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +132 -111
- package/src/foundry/common/data/data.mjs/settingData.d.ts +11 -8
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +30 -26
- package/src/foundry/common/data/data.mjs/tileData.d.ts +43 -36
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +10 -9
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +6 -3
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +105 -157
- package/src/foundry/common/data/data.mjs/userData.d.ts +111 -33
- package/src/foundry/common/data/data.mjs/videoData.d.ts +9 -8
- package/src/foundry/common/data/data.mjs/wallData.d.ts +67 -39
- package/src/foundry/common/data/fields.mjs.d.ts +180 -83
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +9 -3
- package/src/foundry/common/documents.mjs/baseActor.d.ts +17 -45
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +38 -0
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +3 -1
- package/src/foundry/common/documents.mjs/baseCard.d.ts +62 -0
- package/src/foundry/common/documents.mjs/baseCards.d.ts +39 -0
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +5 -2
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +10 -1
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +11 -1
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +4 -3
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +10 -1
- package/src/foundry/common/documents.mjs/baseItem.d.ts +11 -29
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +4 -1
- package/src/foundry/common/documents.mjs/baseNote.d.ts +2 -2
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +1 -0
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +2 -1
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseScene.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +10 -3
- package/src/foundry/common/documents.mjs/baseTile.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseToken.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseUser.d.ts +7 -1
- package/src/foundry/common/documents.mjs/baseWall.d.ts +7 -10
- package/src/foundry/common/documents.mjs/index.d.ts +3 -0
- package/src/foundry/common/module.mjs.d.ts +3 -0
- package/src/foundry/common/packages.mjs/moduleData.d.ts +12 -9
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +24 -24
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +27 -21
- package/src/foundry/common/packages.mjs/packageData.d.ts +108 -82
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +18 -11
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +16 -15
- package/src/foundry/common/packages.mjs/systemData.d.ts +21 -20
- package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +3 -3
- package/src/foundry/common/packages.mjs/worldData.d.ts +29 -18
- package/src/foundry/common/types.mjs.d.ts +100 -0
- package/src/foundry/common/utils/helpers.mjs.d.ts +27 -2
- package/src/foundry/common/utils/primitives.mjs.d.ts +99 -16
- package/src/foundry/foundry.js/application.d.ts +4 -7
- package/src/foundry/foundry.js/applications/cameraViews.d.ts +36 -31
- package/src/foundry/foundry.js/applications/compendium.d.ts +5 -2
- package/src/foundry/foundry.js/applications/filePicker.d.ts +116 -116
- package/src/foundry/foundry.js/applications/formApplication.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +20 -27
- package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +66 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +6 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +104 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/{folderConfig.d.ts → documentSheets/folderConfig.d.ts} +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +4 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/lightConfig.d.ts +5 -79
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +60 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +72 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +5 -5
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +187 -148
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +133 -110
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +93 -95
- package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +163 -147
- 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/index.d.ts +2 -3
- package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +257 -0
- package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +41 -23
- package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +95 -86
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +142 -155
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +60 -70
- package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +25 -17
- package/src/foundry/foundry.js/applications/hotbar.d.ts +5 -4
- package/src/foundry/foundry.js/applications/sceneControls.d.ts +13 -3
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +90 -71
- package/src/foundry/foundry.js/applications/sidebarTab.d.ts +1 -1
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +7 -6
- package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts +13 -56
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/cardsDirectory.d.ts +7 -0
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/itemDirectory.d.ts +7 -30
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/journalDirectory.d.ts +14 -34
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/macroDirectory.d.ts +6 -52
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/playlistDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts +6 -23
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +4 -6
- package/src/foundry/foundry.js/avSettings.d.ts +7 -7
- package/src/foundry/foundry.js/cameraPopoutAppWrapper.d.ts +12 -7
- package/src/foundry/foundry.js/canvas.d.ts +150 -47
- package/src/foundry/foundry.js/canvasAnimation.d.ts +1 -1
- package/src/foundry/foundry.js/canvasDocumentMixin.d.ts +7 -0
- package/src/foundry/foundry.js/clientDatabaseBackend.d.ts +210 -0
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +45 -91
- package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +3 -2
- package/src/foundry/foundry.js/clientDocuments/actor.d.ts +3 -7
- package/src/foundry/foundry.js/clientDocuments/canvasDocuments/ambientSoundDocument.d.ts +1 -6
- package/src/foundry/foundry.js/clientDocuments/canvasDocuments/tokenDocument.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/card.d.ts +133 -0
- package/src/foundry/foundry.js/clientDocuments/cards.d.ts +384 -0
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +11 -10
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +4 -8
- package/src/foundry/foundry.js/clientDocuments/combatant.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/folder.d.ts +4 -6
- package/src/foundry/foundry.js/clientDocuments/index.d.ts +3 -0
- package/src/foundry/foundry.js/clientDocuments/item.d.ts +3 -4
- package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +4 -3
- package/src/foundry/foundry.js/clientDocuments/prototypeToken.d.ts +15 -0
- package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/scene.d.ts +30 -23
- package/src/foundry/foundry.js/clientKeybindings.d.ts +299 -0
- package/src/foundry/foundry.js/clientSettings.d.ts +21 -6
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +45 -12
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/cardStacks.d.ts +9 -0
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/index.d.ts +1 -0
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +3 -2
- package/src/foundry/foundry.js/config.d.ts +494 -902
- package/src/foundry/foundry.js/dragDrop.d.ts +17 -14
- package/src/foundry/foundry.js/game.d.ts +86 -11
- package/src/foundry/foundry.js/gamepadManager.d.ts +41 -0
- package/src/foundry/foundry.js/globalVariables.d.ts +7 -4
- package/src/foundry/foundry.js/handlebarsHelpers.d.ts +4 -4
- package/src/foundry/foundry.js/hooks.d.ts +57 -0
- package/src/foundry/foundry.js/keyboardManager.d.ts +165 -213
- package/src/foundry/foundry.js/mouseInteractionManager.d.ts +78 -34
- package/src/foundry/foundry.js/mouseManager.d.ts +18 -0
- package/src/foundry/foundry.js/newUserExperience.d.ts +34 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainer.d.ts +8 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainers/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainers/primaryCanvasGroup.d.ts +42 -0
- package/src/foundry/foundry.js/pixi/containers/canvasLayer.d.ts +2 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/gridLayer.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/index.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayer.d.ts +10 -19
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/backgroundLayer.d.ts +6 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/foregroundLayer.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +4 -4
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/{effectsLayer.d.ts → weatherLayer.d.ts} +7 -7
- package/src/foundry/foundry.js/pixi/containers/effectsCanvasGroup.d.ts +29 -0
- package/src/foundry/foundry.js/pixi/containers/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/containers/interfaceCanvasGroup.d.ts +27 -0
- package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +4 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +1 -1
- package/src/foundry/foundry.js/pointSource.d.ts +174 -86
- package/src/foundry/foundry.js/roll.d.ts +25 -36
- package/src/foundry/foundry.js/rollTerm.d.ts +7 -4
- package/src/foundry/foundry.js/rollTerms/diceTerm.d.ts +4 -22
- package/src/foundry/foundry.js/rollTerms/mathTerm.d.ts +3 -0
- package/src/foundry/foundry.js/rollTerms/parentheticalTerm.d.ts +3 -0
- package/src/foundry/foundry.js/rollTerms/poolTerm.d.ts +3 -5
- package/src/foundry/foundry.js/rollTerms/stringTerm.d.ts +4 -1
- package/src/foundry/foundry.js/searchFilter.d.ts +1 -1
- package/src/foundry/foundry.js/textEditor.d.ts +40 -9
- package/src/foundry/index.d.ts +5 -0
- package/src/types/utils.d.ts +11 -3
- package/src/foundry/foundry.js/applications/formApplications/measuredTemplateConfig.d.ts +0 -61
- package/src/foundry/foundry.js/applications/formApplications/noteConfig.d.ts +0 -77
@@ -91,8 +91,11 @@ declare global {
|
|
91
91
|
/** @override */
|
92
92
|
protected _onDragStart(event: DragEvent): void;
|
93
93
|
|
94
|
-
/**
|
95
|
-
|
94
|
+
/**
|
95
|
+
* @override
|
96
|
+
* @internal
|
97
|
+
*/
|
98
|
+
protected _onDrop(event: DragEvent): void;
|
96
99
|
|
97
100
|
/**
|
98
101
|
* Handle the dropping of ActiveEffect data onto an Actor Sheet
|
@@ -191,7 +194,7 @@ declare global {
|
|
191
194
|
|
192
195
|
interface Folder {
|
193
196
|
type: 'Folder';
|
194
|
-
documentName: foundry.CONST.
|
197
|
+
documentName: foundry.CONST.FOLDER_DOCUMENT_TYPES;
|
195
198
|
id: string;
|
196
199
|
}
|
197
200
|
}
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
|
2
|
+
import type { AmbientLightDataConstructorData } from '../../../../common/data/data.mjs/ambientLightData';
|
3
|
+
import type { AnimationDataConstructorData } from '../../../../common/data/data.mjs/animationData';
|
4
|
+
import type { DarknessActivationConstructorData } from '../../../../common/data/data.mjs/darknessActivation.js';
|
5
|
+
import type { LightDataConstructorData } from '../../../../common/data/data.mjs/lightData.js';
|
6
|
+
|
7
|
+
declare global {
|
8
|
+
/**
|
9
|
+
* The Application responsible for configuring a single AmbientLight document within a parent Scene.
|
10
|
+
* @typeParam Options - the type of the options object
|
11
|
+
* @typeParam Data - The data structure used to render the handlebars template.
|
12
|
+
*/
|
13
|
+
class AmbientLightConfig<
|
14
|
+
Options extends DocumentSheet.Options = DocumentSheet.Options,
|
15
|
+
Data extends object = AmbientLightConfig.Data<Options>
|
16
|
+
> extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'AmbientLight'>>> {
|
17
|
+
/**
|
18
|
+
* @override
|
19
|
+
* @defaultValue
|
20
|
+
* ```typescript
|
21
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
22
|
+
* id: "ambient-light-config",
|
23
|
+
* classes: ["sheet", "ambient-light-config"],
|
24
|
+
* title: "LIGHT.ConfigTitle",
|
25
|
+
* template: "templates/scene/ambient-light-config.html",
|
26
|
+
* width: 480,
|
27
|
+
* height: "auto",
|
28
|
+
* tabs: [{navSelector: ".tabs", contentSelector: "form", initial: "basic"}]
|
29
|
+
* });
|
30
|
+
* ```
|
31
|
+
*/
|
32
|
+
static get defaultOptions(): DocumentSheet.Options;
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @param options - (unused)
|
36
|
+
* @override
|
37
|
+
*/
|
38
|
+
getData(options?: Partial<Options>): Data | Promise<Data>;
|
39
|
+
|
40
|
+
/** @override */
|
41
|
+
close(options?: Application.CloseOptions): Promise<void>;
|
42
|
+
|
43
|
+
/** @override */
|
44
|
+
activateListeners(html: JQuery): void;
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Preview the change caused by a change on the form by refreshing the display of the light source
|
48
|
+
*/
|
49
|
+
protected _onChangeInput(event: JQuery.ChangeEvent): Promise<void>;
|
50
|
+
|
51
|
+
/** @override */
|
52
|
+
protected _onResetForm(event: PointerEvent): void;
|
53
|
+
|
54
|
+
/** @override */
|
55
|
+
protected _onChangeTab(event: MouseEvent | null, tabs: Tabs, active: string): void;
|
56
|
+
|
57
|
+
/**
|
58
|
+
* @param event - (unused)
|
59
|
+
* @override
|
60
|
+
*/
|
61
|
+
protected _updateObject(
|
62
|
+
event: Event,
|
63
|
+
formData: AmbientLightConfig.FormData
|
64
|
+
): Promise<InstanceType<ConfiguredDocumentClassForName<'AmbientLight'>> | undefined>;
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Refresh the display of the AmbientLight object
|
68
|
+
* @internal
|
69
|
+
*/
|
70
|
+
protected _refresh(): void;
|
71
|
+
}
|
72
|
+
|
73
|
+
namespace AmbientLightConfig {
|
74
|
+
interface Data<Options extends DocumentSheet.Options>
|
75
|
+
extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'AmbientLight'>>, Options> {
|
76
|
+
isAdvanced: boolean;
|
77
|
+
colorationTechniques: unknown; // FIXME: typeof AdaptiveLightingShader.COLORATION_TECHNIQUES
|
78
|
+
lightAnimations: Record<string, string> & {
|
79
|
+
'': 'None';
|
80
|
+
};
|
81
|
+
submitText: string;
|
82
|
+
}
|
83
|
+
|
84
|
+
interface FormData extends Pick<AmbientLightDataConstructorData, 'x' | 'y' | 'rotation' | 'walls' | 'vision'> {
|
85
|
+
'config.dim': LightDataConstructorData['dim'];
|
86
|
+
'config.bright': LightDataConstructorData['bright'];
|
87
|
+
'config.angle': LightDataConstructorData['angle'];
|
88
|
+
'config.color': LightDataConstructorData['color'];
|
89
|
+
'config.alpha': LightDataConstructorData['alpha'];
|
90
|
+
'config.darkness.min': DarknessActivationConstructorData['min'];
|
91
|
+
'config.darkness.max': DarknessActivationConstructorData['max'];
|
92
|
+
'config.animation.type': AnimationDataConstructorData['type'];
|
93
|
+
'config.animation.speed': AnimationDataConstructorData['speed'];
|
94
|
+
'config.animation.reverse': AnimationDataConstructorData['reverse'];
|
95
|
+
'config.animation.intensity': AnimationDataConstructorData['intensity'];
|
96
|
+
'config.coloration': LightDataConstructorData['coloration'];
|
97
|
+
'config.luminosity': LightDataConstructorData['luminosity'];
|
98
|
+
'config.gradual': LightDataConstructorData['gradual'];
|
99
|
+
'config.saturation': LightDataConstructorData['saturation'];
|
100
|
+
'config.contrast': LightDataConstructorData['contrast'];
|
101
|
+
'config.shadows': LightDataConstructorData['shadows'];
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts
CHANGED
@@ -49,7 +49,7 @@ declare global {
|
|
49
49
|
submitText: string;
|
50
50
|
}
|
51
51
|
|
52
|
-
type FormData = Pick<foundry.data.AmbientSoundData, 'easing' | 'path' | '
|
52
|
+
type FormData = Pick<foundry.data.AmbientSoundData, 'easing' | 'path' | 'volume'> &
|
53
53
|
Pick<AmbientSoundDataConstructorData, 'radius' | 'x' | 'y'>;
|
54
54
|
|
55
55
|
type Options = DocumentSheet.Options;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { ConfiguredDocumentClass } from '
|
2
|
-
import type { SortingModes } from '
|
1
|
+
import type { ConfiguredDocumentClass } from '../../../../../types/helperTypes';
|
2
|
+
import type { SortingModes } from '../../../../common/data/data.mjs/folderData';
|
3
3
|
|
4
4
|
declare global {
|
5
5
|
/**
|
@@ -64,7 +64,7 @@ declare global {
|
|
64
64
|
name: string;
|
65
65
|
parent: string;
|
66
66
|
sorting: SortingModes;
|
67
|
-
type: foundry.CONST.
|
67
|
+
type: foundry.CONST.FOLDER_DOCUMENT_TYPES;
|
68
68
|
}
|
69
69
|
}
|
70
70
|
}
|
@@ -1,11 +1,15 @@
|
|
1
1
|
import './activeEffectConfig';
|
2
2
|
import './actorSheet';
|
3
|
+
import './ambientLightConfig';
|
3
4
|
import './ambientSoundConfig';
|
4
5
|
import './combatantConfig';
|
6
|
+
import './folderConfig';
|
5
7
|
import './itemSheet';
|
6
8
|
import './journalSheet';
|
7
9
|
import './lightConfig';
|
8
10
|
import './macroConfig';
|
11
|
+
import './measuredTemplateConfig';
|
12
|
+
import './noteConfig';
|
9
13
|
import './permissionControl';
|
10
14
|
import './playlistConfig';
|
11
15
|
import './playlistSoundConfig';
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/lightConfig.d.ts
CHANGED
@@ -1,84 +1,10 @@
|
|
1
|
-
import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
|
2
|
-
import type { AmbientLightDataConstructorData } from '../../../../common/data/data.mjs/ambientLightData';
|
3
|
-
import type { AnimationDataConstructorData } from '../../../../common/data/data.mjs/animationData';
|
4
|
-
|
5
1
|
declare global {
|
6
2
|
/**
|
7
|
-
*
|
8
|
-
* @typeParam Options - the type of the options object
|
9
|
-
* @typeParam Data - The data structure used to render the handlebars template.
|
3
|
+
* @deprecated since v9
|
10
4
|
*/
|
11
|
-
class LightConfig
|
12
|
-
|
13
|
-
Data extends object = LightConfig.Data<Options>
|
14
|
-
> extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'AmbientLight'>>> {
|
15
|
-
/**
|
16
|
-
* @override
|
17
|
-
* @defaultValue
|
18
|
-
* ```typescript
|
19
|
-
* foundry.utils.mergeObject(super.defaultOptions, {
|
20
|
-
* title: "LIGHT.ConfigTitle",
|
21
|
-
* template: "templates/scene/light-config.html",
|
22
|
-
* width: 480
|
23
|
-
* });
|
24
|
-
* ```
|
25
|
-
*/
|
26
|
-
static get defaultOptions(): DocumentSheet.Options;
|
27
|
-
|
28
|
-
/**
|
29
|
-
* @param options - (unused)
|
30
|
-
* @override
|
31
|
-
*/
|
32
|
-
getData(options?: Partial<Options>): Data | Promise<Data>;
|
33
|
-
|
34
|
-
/** @override */
|
35
|
-
close(options?: Application.CloseOptions): Promise<void>;
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Preview the change caused by a change on the form by refreshing the display of the light source
|
39
|
-
*/
|
40
|
-
protected _onChangeInput(event: JQuery.ChangeEvent): Promise<void>;
|
41
|
-
|
42
|
-
/** @override */
|
43
|
-
protected _getSubmitData(
|
44
|
-
updateData?: LightConfig.FormData
|
45
|
-
): ReturnType<DocumentSheet['_getSubmitData']> & { tintAlpha: number };
|
46
|
-
|
47
|
-
/**
|
48
|
-
* @param event - (unused)
|
49
|
-
* @override
|
50
|
-
*/
|
51
|
-
protected _updateObject(
|
52
|
-
event: Event,
|
53
|
-
formData: LightConfig.FormData
|
54
|
-
): Promise<InstanceType<ConfiguredDocumentClassForName<'AmbientLight'>> | undefined>;
|
55
|
-
|
56
|
-
/**
|
57
|
-
* Refresh the display of the AmbientLight object
|
58
|
-
* @internal
|
59
|
-
*/
|
60
|
-
protected _refresh(): void;
|
61
|
-
}
|
62
|
-
|
63
|
-
namespace LightConfig {
|
64
|
-
interface Data<Options extends DocumentSheet.Options>
|
65
|
-
extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'AmbientLight'>>, Options> {
|
66
|
-
submitText: string;
|
67
|
-
lightTypes: Record<foundry.CONST.SourceType, string>;
|
68
|
-
lightAnimations: Record<string, string> & {
|
69
|
-
'': 'None';
|
70
|
-
};
|
71
|
-
colorIntensity: number;
|
72
|
-
}
|
73
|
-
|
74
|
-
interface FormData
|
75
|
-
extends Pick<
|
76
|
-
AmbientLightDataConstructorData,
|
77
|
-
'angle' | 'bright' | 'darknessThreshold' | 'dim' | 'rotation' | 't' | 'tintAlpha' | 'tintColor' | 'x' | 'y'
|
78
|
-
> {
|
79
|
-
'lightAnimation.intensity': AnimationDataConstructorData['intensity'];
|
80
|
-
'lightAnimation.speed': AnimationDataConstructorData['speed'];
|
81
|
-
'lightAnimation.type': AnimationDataConstructorData['type'];
|
82
|
-
}
|
5
|
+
class LightConfig extends AmbientLightConfig {
|
6
|
+
constructor(...args: ConstructorParameters<typeof AmbientLightConfig>);
|
83
7
|
}
|
84
8
|
}
|
9
|
+
|
10
|
+
export {};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
|
2
|
+
|
3
|
+
declare global {
|
4
|
+
/**
|
5
|
+
* The Application responsible for configuring a single MeasuredTemplate document within a parent Scene.
|
6
|
+
* @see {@link MeasuredTemplate}
|
7
|
+
* @typeParam Options - the type of the options object
|
8
|
+
* @typeParam Data - The data structure used to render the handlebars template.
|
9
|
+
*/
|
10
|
+
class MeasuredTemplateConfig<
|
11
|
+
Options extends DocumentSheet.Options = DocumentSheet.Options,
|
12
|
+
Data extends object = MeasuredTemplateConfig.Data
|
13
|
+
> extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'MeasuredTemplate'>>> {
|
14
|
+
/**
|
15
|
+
* @override
|
16
|
+
* @defaultValue
|
17
|
+
* ```typescript
|
18
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
19
|
+
* id: "template-config",
|
20
|
+
* classes: ["sheet", "template-sheet"],
|
21
|
+
* title: "Measurement Template Configuration",
|
22
|
+
* template: "templates/scene/template-config.html",
|
23
|
+
* width: 400,
|
24
|
+
* })
|
25
|
+
* ```
|
26
|
+
*/
|
27
|
+
static get defaultOptions(): DocumentSheet.Options;
|
28
|
+
|
29
|
+
/** @override */
|
30
|
+
getData(): Data | Promise<Data>;
|
31
|
+
|
32
|
+
/** @override */
|
33
|
+
protected _updateObject(
|
34
|
+
event: Event,
|
35
|
+
formData: MeasuredTemplateConfig.FormData
|
36
|
+
): Promise<InstanceType<ConfiguredDocumentClassForName<'MeasuredTemplate'>> | undefined>;
|
37
|
+
}
|
38
|
+
|
39
|
+
namespace MeasuredTemplateConfig {
|
40
|
+
interface Data<Options extends DocumentSheet.Options = DocumentSheet.Options>
|
41
|
+
extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'MeasuredTemplate'>>, Options> {
|
42
|
+
templateTypes: typeof CONFIG.MeasuredTemplate.types;
|
43
|
+
gridUnits: string;
|
44
|
+
submitText: string;
|
45
|
+
}
|
46
|
+
|
47
|
+
type FormData = {
|
48
|
+
angle: number | null;
|
49
|
+
borderColor: string;
|
50
|
+
direction: number | null;
|
51
|
+
distance: number | null;
|
52
|
+
fillColor: string;
|
53
|
+
t: ValueOf<foundry.CONST.MEASURED_TEMPLATE_TYPES>;
|
54
|
+
texture: string;
|
55
|
+
width: number | null;
|
56
|
+
x: number | null;
|
57
|
+
y: number | null;
|
58
|
+
};
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
|
2
|
+
|
3
|
+
declare global {
|
4
|
+
/**
|
5
|
+
* The Application responsible for configuring a single Note document within a parent Scene.
|
6
|
+
* @typeParam Options - the type of the options object
|
7
|
+
* @typeParam Data - The data structure used to render the handlebars template.
|
8
|
+
*/
|
9
|
+
class NoteConfig<
|
10
|
+
Options extends DocumentSheet.Options = DocumentSheet.Options,
|
11
|
+
Data extends object = NoteConfig.Data<Options>
|
12
|
+
> extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'Note'>>> {
|
13
|
+
/**
|
14
|
+
* @override
|
15
|
+
* @defaultValue
|
16
|
+
* ```typescript
|
17
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
18
|
+
* title: game.i18n.localize("NOTE.ConfigTitle"),
|
19
|
+
* template: "templates/scene/note-config.html",
|
20
|
+
* width: 400,
|
21
|
+
* })
|
22
|
+
* ```
|
23
|
+
*/
|
24
|
+
static get defaultOptions(): DocumentSheet.Options;
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @param options - (unused)
|
28
|
+
* @override
|
29
|
+
*/
|
30
|
+
getData(options?: Partial<Options>): Data | Promise<Data>;
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @param event - (unused)
|
34
|
+
* @override
|
35
|
+
*/
|
36
|
+
protected _updateObject(
|
37
|
+
event: Event,
|
38
|
+
formData: NoteConfig.FormData
|
39
|
+
): Promise<ConfiguredDocumentClassForName<'Note'> | undefined>;
|
40
|
+
|
41
|
+
/**
|
42
|
+
* @override
|
43
|
+
*/
|
44
|
+
close(options?: Application.CloseOptions): Promise<void>;
|
45
|
+
}
|
46
|
+
|
47
|
+
namespace NoteConfig {
|
48
|
+
interface Data<Options extends DocumentSheet.Options>
|
49
|
+
extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'Note'>>, Options> {
|
50
|
+
entry: ConfiguredDocumentClassForName<'JournalEntry'> | {};
|
51
|
+
entries: Journal['contents'];
|
52
|
+
icons: CONFIG['JournalEntry']['noteIcons'];
|
53
|
+
fontFamilies: Record<string, string>;
|
54
|
+
textAnchors: Record<foundry.CONST.TEXT_ANCHOR_POINTS, string>;
|
55
|
+
submitText: string;
|
56
|
+
}
|
57
|
+
|
58
|
+
interface FormData {
|
59
|
+
entryId: string;
|
60
|
+
fontFamily: string;
|
61
|
+
fontSize: number | null;
|
62
|
+
icon: string;
|
63
|
+
iconSize: number | null;
|
64
|
+
iconTint: string;
|
65
|
+
text: string;
|
66
|
+
textAnchor: foundry.CONST.TEXT_ANCHOR_POINTS;
|
67
|
+
textColor: string;
|
68
|
+
x: number | null;
|
69
|
+
y: number | null;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts
CHANGED
@@ -43,14 +43,14 @@ declare global {
|
|
43
43
|
namespace PermissionControl {
|
44
44
|
interface Data<ConcreteDocument extends foundry.abstract.Document<any, any>> extends DocumentSheet.Data {
|
45
45
|
entity: ConcreteDocument;
|
46
|
-
currentDefault: foundry.CONST.
|
46
|
+
currentDefault: foundry.CONST.DOCUMENT_PERMISSION_LEVELS | '-1';
|
47
47
|
instructions: string;
|
48
|
-
defaultLevels: Record<foundry.CONST.
|
49
|
-
playerLevels: Record<foundry.CONST.
|
48
|
+
defaultLevels: Record<foundry.CONST.DOCUMENT_PERMISSION_LEVELS, string> & { '-1'?: string };
|
49
|
+
playerLevels: Record<foundry.CONST.DOCUMENT_PERMISSION_LEVELS | '-1', string> & { '-2'?: string };
|
50
50
|
isFolder: boolean;
|
51
51
|
users: {
|
52
52
|
user: InstanceType<ConfiguredDocumentClassForName<'User'>>;
|
53
|
-
level: foundry.CONST.
|
53
|
+
level: foundry.CONST.DOCUMENT_PERMISSION_LEVELS | '-1';
|
54
54
|
}[];
|
55
55
|
}
|
56
56
|
|
@@ -60,7 +60,7 @@ declare global {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
namespace FormData {
|
63
|
-
type InputPermissionLevel = foundry.CONST.
|
63
|
+
type InputPermissionLevel = foundry.CONST.DOCUMENT_PERMISSION_LEVELS | -1 | -2;
|
64
64
|
}
|
65
65
|
}
|
66
66
|
}
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts
CHANGED
@@ -43,7 +43,7 @@ declare global {
|
|
43
43
|
namespace PlaylistConfig {
|
44
44
|
interface Data<Options extends DocumentSheet.Options = DocumentSheet.Options>
|
45
45
|
extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClass<typeof Playlist>>, Options> {
|
46
|
-
modes: Record<foundry.CONST.
|
46
|
+
modes: Record<foundry.CONST.PLAYLIST_MODES, string>;
|
47
47
|
}
|
48
48
|
}
|
49
49
|
}
|