@league-of-foundry-developers/foundry-vtt-types 12.331.4-beta → 12.331.5
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 +18 -1
- package/src/configuration/configuration.d.mts +1 -1
- package/src/foundry/client/apps/app.d.mts +1 -1
- package/src/foundry/client/apps/av/av-config.d.mts +1 -1
- package/src/foundry/client/apps/av/cameras.d.mts +1 -1
- package/src/foundry/client/apps/dice/dice-config.d.mts +1 -1
- package/src/foundry/client/apps/form.d.mts +1 -1
- package/src/foundry/client/apps/forms/actor.d.mts +1 -1
- package/src/foundry/client/apps/forms/adventure-exporter.d.mts +1 -1
- package/src/foundry/client/apps/forms/adventure-importer.d.mts +1 -1
- package/src/foundry/client/apps/forms/base-sheet.d.mts +1 -1
- package/src/foundry/client/apps/forms/card-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/cards-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/combat-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/effect-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/folder-config.d.mts +7 -2
- package/src/foundry/client/apps/forms/fonts.d.mts +1 -1
- package/src/foundry/client/apps/forms/grid-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/image-popout.d.mts +1 -1
- package/src/foundry/client/apps/forms/item.d.mts +1 -1
- package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +1 -1
- package/src/foundry/client/apps/forms/journal-sheet.d.mts +1 -1
- package/src/foundry/client/apps/forms/macro-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/measure-template.d.mts +1 -1
- package/src/foundry/client/apps/forms/ownership.d.mts +1 -1
- package/src/foundry/client/apps/forms/playlist-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/roll-table-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/scene-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/sheet-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/user-config.d.mts +1 -1
- package/src/foundry/client/apps/hud/chatbubble.d.mts +1 -1
- package/src/foundry/client/apps/hud/container.d.mts +1 -1
- package/src/foundry/client/apps/hud/controls.d.mts +1 -1
- package/src/foundry/client/apps/hud/hotbar.d.mts +1 -1
- package/src/foundry/client/apps/hud/hud.d.mts +1 -1
- package/src/foundry/client/apps/hud/menu.d.mts +1 -1
- package/src/foundry/client/apps/hud/navigation.d.mts +1 -1
- package/src/foundry/client/apps/hud/pause.d.mts +1 -1
- package/src/foundry/client/apps/hud/players.d.mts +1 -1
- package/src/foundry/client/apps/placeables/drawing-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/drawing-hud.d.mts +1 -1
- package/src/foundry/client/apps/placeables/note-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/tile-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/tile-hud.d.mts +1 -1
- package/src/foundry/client/apps/placeables/token-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/token-hud.d.mts +1 -1
- package/src/foundry/client/apps/placeables/wall-config.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/package-configuration.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/sidebar.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +1 -1
- package/src/foundry/client/av/client.d.mts +1 -1
- package/src/foundry/client/av/clients/simplepeer.d.mts +1 -1
- package/src/foundry/client/av/master.d.mts +1 -1
- package/src/foundry/client/av/settings.d.mts +1 -1
- package/src/foundry/client/config.d.mts +1 -1
- package/src/foundry/client/core/hooks.d.mts +1 -1
- package/src/foundry/client/core/image.d.mts +1 -1
- package/src/foundry/client/core/keybindings.d.mts +1 -1
- package/src/foundry/client/core/packages.d.mts +4 -2
- package/src/foundry/client/core/settings.d.mts +1 -1
- package/src/foundry/client/core/socket.d.mts +1 -1
- package/src/foundry/client/core/tooltip.d.mts +1 -1
- package/src/foundry/client/core/tour.d.mts +1 -1
- package/src/foundry/client/core/utils.d.mts +1 -1
- package/src/foundry/client/core/workers.d.mts +1 -1
- package/src/foundry/client/data/abstract/canvas-document.d.mts +9 -20
- package/src/foundry/client/data/abstract/client-document.d.mts +133 -71
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +2 -2
- package/src/foundry/client/data/abstract/document-collection.d.mts +1 -1
- package/src/foundry/client/data/abstract/world-collection.d.mts +8 -1
- package/src/foundry/client/data/collections/actors.d.mts +1 -1
- package/src/foundry/client/data/collections/cards.d.mts +1 -1
- package/src/foundry/client/data/collections/combats.d.mts +1 -1
- package/src/foundry/client/data/collections/compendium-collection.d.mts +5 -4
- package/src/foundry/client/data/collections/fog.d.mts +1 -1
- package/src/foundry/client/data/collections/folder.d.mts +1 -1
- package/src/foundry/client/data/collections/items.d.mts +1 -1
- package/src/foundry/client/data/collections/journal.d.mts +1 -1
- package/src/foundry/client/data/collections/macros.d.mts +1 -1
- package/src/foundry/client/data/collections/messages.d.mts +1 -1
- package/src/foundry/client/data/collections/playlists.d.mts +1 -1
- package/src/foundry/client/data/collections/scenes.d.mts +1 -1
- package/src/foundry/client/data/collections/settings.d.mts +1 -1
- package/src/foundry/client/data/collections/tables.d.mts +1 -1
- package/src/foundry/client/data/collections/users.d.mts +4 -4
- package/src/foundry/client/data/documents/active-effect.d.mts +124 -48
- package/src/foundry/client/data/documents/actor-delta.d.mts +53 -22
- package/src/foundry/client/data/documents/actor.d.mts +147 -93
- package/src/foundry/client/data/documents/adventure.d.mts +74 -45
- package/src/foundry/client/data/documents/ambient-light.d.mts +13 -10
- package/src/foundry/client/data/documents/ambient-sound.d.mts +12 -7
- package/src/foundry/client/data/documents/card.d.mts +57 -34
- package/src/foundry/client/data/documents/cards.d.mts +171 -135
- package/src/foundry/client/data/documents/chat-message.d.mts +131 -72
- package/src/foundry/client/data/documents/combat.d.mts +80 -60
- package/src/foundry/client/data/documents/combatant.d.mts +53 -20
- package/src/foundry/client/data/documents/drawing.d.mts +12 -7
- package/src/foundry/client/data/documents/fog-exploration.d.mts +57 -17
- package/src/foundry/client/data/documents/folder.d.mts +114 -31
- package/src/foundry/client/data/documents/item.d.mts +31 -21
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +90 -57
- package/src/foundry/client/data/documents/journal-entry.d.mts +29 -34
- package/src/foundry/client/data/documents/macro.d.mts +60 -34
- package/src/foundry/client/data/documents/measured-template.d.mts +13 -8
- package/src/foundry/client/data/documents/note.d.mts +14 -7
- package/src/foundry/client/data/documents/playlist-sound.d.mts +29 -33
- package/src/foundry/client/data/documents/playlist.d.mts +74 -54
- package/src/foundry/client/data/documents/region-behavior.d.mts +16 -7
- package/src/foundry/client/data/documents/region.d.mts +53 -48
- package/src/foundry/client/data/documents/scene.d.mts +310 -89
- package/src/foundry/client/data/documents/setting.d.mts +24 -23
- package/src/foundry/client/data/documents/table-result.d.mts +20 -8
- package/src/foundry/client/data/documents/table.d.mts +19 -13
- package/src/foundry/client/data/documents/tile.d.mts +13 -7
- package/src/foundry/client/data/documents/token.d.mts +148 -117
- package/src/foundry/client/data/documents/user.d.mts +141 -53
- package/src/foundry/client/data/documents/wall.d.mts +17 -10
- package/src/foundry/client/game.d.mts +1 -1
- package/src/foundry/client/head.d.mts +1 -1
- package/src/foundry/client/hooks.d.mts +9 -18
- package/src/foundry/client/pixi/board.d.mts +3 -2
- package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +1 -8
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/targets.d.mts +1 -1
- package/src/foundry/client/pixi/core/loader.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/circle.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/observable-transform.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/polygon.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +1 -1
- package/src/foundry/client/pixi/groups/effects.d.mts +1 -1
- package/src/foundry/client/pixi/groups/environment.d.mts +1 -1
- package/src/foundry/client/pixi/groups/hidden.d.mts +1 -1
- package/src/foundry/client/pixi/groups/interface.d.mts +1 -1
- package/src/foundry/client/pixi/groups/overlay.d.mts +1 -1
- package/src/foundry/client/pixi/groups/primary.d.mts +1 -1
- package/src/foundry/client/pixi/groups/rendered.d.mts +1 -1
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/door.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +1 -1
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/grid/mesh.d.mts +1 -1
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +1 -1
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +1 -1
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/regions.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +1 -1
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +1 -1
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +1 -1
- package/src/foundry/client/pixi/perception/fog.d.mts +1 -1
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +1 -1
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +1 -1
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +1 -1
- package/src/foundry/client/pixi/placeable.d.mts +2 -1
- package/src/foundry/client/pixi/placeables/drawing.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/light.d.mts +1 -7
- package/src/foundry/client/pixi/placeables/note.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/region.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/sound.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/template.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/tile.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/token.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/wall.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/helpers/framebuffer-snapshot.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +1 -1
- package/src/foundry/client/pixi/workers/texture-worker.d.mts +1 -1
- package/src/foundry/client/ui/context.d.mts +1 -1
- package/src/foundry/client/ui/dialog.d.mts +1 -1
- package/src/foundry/client/ui/dragdrop.d.mts +1 -1
- package/src/foundry/client/ui/editor.d.mts +1 -1
- package/src/foundry/client/ui/filepicker.d.mts +1 -1
- package/src/foundry/client/ui/filter.d.mts +1 -1
- package/src/foundry/client-esm/applications/api/application.d.mts +1 -9
- package/src/foundry/client-esm/applications/api/dialog.d.mts +1 -1
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +1 -1
- package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +1 -1
- package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/apps/permission-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +1 -1
- package/src/foundry/client-esm/applications/forms/fields.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/region-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/ui/region-legend.d.mts +1 -1
- package/src/foundry/client-esm/audio/biquad.d.mts +1 -1
- package/src/foundry/client-esm/audio/convolver.d.mts +1 -1
- package/src/foundry/client-esm/audio/helper.d.mts +1 -1
- package/src/foundry/client-esm/audio/sound.d.mts +2 -2
- package/src/foundry/client-esm/canvas/edges/collision.d.mts +1 -1
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +1 -1
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +1 -1
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -1
- package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +3 -2
- package/src/foundry/client-esm/canvas/tokens/ring.d.mts +1 -1
- package/src/foundry/client-esm/data/client-backend.d.mts +1 -1
- package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +4 -5
- package/src/foundry/client-esm/data/region-behaviors/base.d.mts +1 -1
- package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +1 -1
- package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +4 -4
- package/src/foundry/client-esm/dice/roll.d.mts +5 -8
- package/src/foundry/client-esm/dice/terms/coin.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/dice.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/die.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/fate.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/function.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/numeric.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/operator.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/pool.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/string.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/term.d.mts +1 -1
- package/src/foundry/common/abstract/backend.d.mts +1 -1
- package/src/foundry/common/abstract/data.d.mts +197 -146
- package/src/foundry/common/abstract/document.d.mts +198 -81
- package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
- package/src/foundry/common/abstract/embedded-collection.d.mts +1 -1
- package/src/foundry/common/abstract/socket.d.mts +1 -1
- package/src/foundry/common/abstract/type-data.d.mts +4 -1
- package/src/foundry/common/config.d.mts +7 -1
- package/src/foundry/common/constants.d.mts +1 -1
- package/src/foundry/common/data/data.d.mts +42 -12
- package/src/foundry/common/data/fields.d.mts +656 -252
- package/src/foundry/common/documents/_types.d.mts +0 -6
- package/src/foundry/common/documents/active-effect.d.mts +116 -53
- package/src/foundry/common/documents/actor-delta.d.mts +139 -58
- package/src/foundry/common/documents/actor.d.mts +105 -51
- package/src/foundry/common/documents/adventure.d.mts +84 -39
- package/src/foundry/common/documents/ambient-light.d.mts +66 -38
- package/src/foundry/common/documents/ambient-sound.d.mts +66 -38
- package/src/foundry/common/documents/card.d.mts +100 -59
- package/src/foundry/common/documents/cards.d.mts +97 -42
- package/src/foundry/common/documents/chat-message.d.mts +105 -52
- package/src/foundry/common/documents/combat.d.mts +101 -48
- package/src/foundry/common/documents/combatant.d.mts +94 -50
- package/src/foundry/common/documents/drawing.d.mts +87 -46
- package/src/foundry/common/documents/fog-exploration.d.mts +87 -41
- package/src/foundry/common/documents/folder.d.mts +100 -46
- package/src/foundry/common/documents/item.d.mts +116 -45
- package/src/foundry/common/documents/journal-entry-page.d.mts +90 -40
- package/src/foundry/common/documents/journal-entry.d.mts +90 -39
- package/src/foundry/common/documents/macro.d.mts +116 -52
- package/src/foundry/common/documents/measured-template.d.mts +80 -44
- package/src/foundry/common/documents/note.d.mts +75 -39
- package/src/foundry/common/documents/playlist-sound.d.mts +88 -47
- package/src/foundry/common/documents/playlist.d.mts +101 -50
- package/src/foundry/common/documents/region-behavior.d.mts +71 -40
- package/src/foundry/common/documents/region.d.mts +68 -40
- package/src/foundry/common/documents/roll-table.d.mts +43 -9
- package/src/foundry/common/documents/scene.d.mts +190 -43
- package/src/foundry/common/documents/setting.d.mts +98 -42
- package/src/foundry/common/documents/table-result.d.mts +98 -48
- package/src/foundry/common/documents/tile.d.mts +77 -43
- package/src/foundry/common/documents/token.d.mts +95 -52
- package/src/foundry/common/documents/user.d.mts +100 -89
- package/src/foundry/common/documents/wall.d.mts +47 -17
- package/src/foundry/common/grid/base.d.mts +1 -1
- package/src/foundry/common/grid/gridless.d.mts +1 -1
- package/src/foundry/common/grid/hexagonal.d.mts +1 -1
- package/src/foundry/common/grid/square.d.mts +1 -1
- package/src/foundry/common/packages/base-package.d.mts +37 -14
- package/src/foundry/common/packages/base-system.d.mts +39 -0
- package/src/foundry/common/packages/base-world.d.mts +8 -1
- package/src/foundry/common/packages/sub-types.d.mts +3 -5
- package/src/foundry/common/primitives/array.d.mts +1 -1
- package/src/foundry/common/primitives/string.d.mts +1 -1
- package/src/foundry/common/prosemirror/dirty-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/dom-parser.d.mts +1 -1
- package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/image-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/paste-transformer.d.mts +1 -1
- package/src/foundry/common/prosemirror/plugin.d.mts +1 -1
- package/src/foundry/common/types.d.mts +1 -1
- package/src/foundry/common/utils/bitmask.d.mts +1 -1
- package/src/foundry/common/utils/collection.d.mts +1 -1
- package/src/foundry/common/utils/event-emitter.d.mts +1 -1
- package/src/foundry/common/utils/helpers.d.mts +1 -1
- package/src/foundry/public/scripts/clipper/clipper.d.mts +1 -1
- package/src/types/augments/particles.d.mts +1 -1
- package/src/types/augments/pixi.d.mts +1 -1
- package/src/types/augments/smooth.d.mts +1 -1
- package/src/types/augments/tinyMCE.d.mts +1 -1
- package/src/types/config.d.mts +2 -5
- package/src/types/documentConfiguration.d.mts +1 -1
- package/src/types/lib.d.mts +1 -1
- package/src/types/workers/image-compressor.d.mts +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity,
|
1
|
+
import type { AnyObject, Identity, IntentionalPartial, Merge, NullishProps } from "#utils";
|
2
2
|
import type { documents } from "../../../client-esm/client.d.mts";
|
3
3
|
import type { DatabaseGetOperation } from "../../../common/abstract/_types.d.mts";
|
4
4
|
import type Document from "../../../common/abstract/document.d.mts";
|
@@ -114,7 +114,7 @@ declare global {
|
|
114
114
|
type Collection = FogExplorations.Configured;
|
115
115
|
|
116
116
|
/**
|
117
|
-
* An instance of `FogExploration` that comes from the database but failed validation
|
117
|
+
* An instance of `FogExploration` that comes from the database but failed validation meaning that
|
118
118
|
* its `system` and `_source` could theoretically be anything.
|
119
119
|
*/
|
120
120
|
interface Invalid extends Document.Invalid<FogExploration.Implementation> {}
|
@@ -210,7 +210,7 @@ declare global {
|
|
210
210
|
* The timestamp at which this fog exploration was last updated
|
211
211
|
* @defaultValue `Date.now()`
|
212
212
|
*/
|
213
|
-
timestamp: fields.NumberField<{ nullable: false; initial:
|
213
|
+
timestamp: fields.NumberField<{ nullable: false; initial: typeof Date.now }>;
|
214
214
|
|
215
215
|
/**
|
216
216
|
* An object of optional key/value flags
|
@@ -376,6 +376,28 @@ declare global {
|
|
376
376
|
* @deprecated {@link FogExploration.Implementation | `FogExploration.Implementation`}
|
377
377
|
*/
|
378
378
|
type ConfiguredInstance = Implementation;
|
379
|
+
|
380
|
+
/** @internal */
|
381
|
+
type _LoadQuery = NullishProps<{
|
382
|
+
/**
|
383
|
+
* A certain Scene ID
|
384
|
+
* @defaultValue `canvas.scene`
|
385
|
+
*/
|
386
|
+
scene: string;
|
387
|
+
|
388
|
+
/**
|
389
|
+
* A certain User ID
|
390
|
+
* @defaultValue `game.user`
|
391
|
+
*/
|
392
|
+
user: string;
|
393
|
+
}>;
|
394
|
+
interface LoadQuery extends _LoadQuery {}
|
395
|
+
|
396
|
+
/**
|
397
|
+
* @remarks {@link FogExploration.load | `FogExploration#load`} takes the `query` property separately as its first argument, then merges that
|
398
|
+
* with this interface via `{query, ...options}` before passing to {@link ClientDatabaseBackend.get | `this.database.get`}
|
399
|
+
*/
|
400
|
+
interface LoadOptions extends Omit<IntentionalPartial<DatabaseGetOperation>, "query"> {}
|
379
401
|
}
|
380
402
|
|
381
403
|
/**
|
@@ -391,18 +413,13 @@ declare global {
|
|
391
413
|
/**
|
392
414
|
* Obtain the fog of war exploration progress for a specific Scene and User.
|
393
415
|
* @param query - Parameters for which FogExploration document is retrieved
|
394
|
-
* @param options - Additional options passed to DatabaseBackend#get.
|
395
|
-
* (default: `{}`)
|
416
|
+
* @param options - Additional options passed to DatabaseBackend#get. (default: `{}`)
|
396
417
|
* @returns
|
397
418
|
*/
|
419
|
+
// query: not null (destructured)
|
398
420
|
static load(
|
399
|
-
query?:
|
400
|
-
|
401
|
-
scene: string;
|
402
|
-
/** A certain User ID **/
|
403
|
-
user: string;
|
404
|
-
}>,
|
405
|
-
options?: InexactPartial<DatabaseGetOperation>,
|
421
|
+
query?: FogExploration.LoadQuery,
|
422
|
+
options?: FogExploration.LoadOptions | null,
|
406
423
|
): Promise<FogExploration.Implementation | null>;
|
407
424
|
|
408
425
|
/**
|
@@ -410,9 +427,27 @@ declare global {
|
|
410
427
|
*/
|
411
428
|
getTexture(): PIXI.Texture | null;
|
412
429
|
|
430
|
+
// _onCreate, _onUpdate, and _onDelete are all overridden but with no signature changes from BaseFogExploration.
|
431
|
+
|
432
|
+
static override get(
|
433
|
+
documentId: string,
|
434
|
+
options?: FogExploration.Database.GetOptions,
|
435
|
+
): FogExploration.Implementation | null;
|
436
|
+
|
437
|
+
/**
|
438
|
+
* @deprecated since v12, will be removed in v14
|
439
|
+
* @remarks "You are calling `FogExploration.get` by passing an object. This means you are probably trying to load Fog of War exploration data, an operation which has been renamed to {@link FogExploration.load | `FogExploration.load`}"
|
440
|
+
*/
|
441
|
+
static override get(
|
442
|
+
query: FogExploration.LoadQuery,
|
443
|
+
options: FogExploration.LoadOptions,
|
444
|
+
): Promise<FogExploration.Implementation | null>;
|
445
|
+
|
413
446
|
/**
|
414
|
-
* @
|
447
|
+
* @deprecated since v11, until v13
|
448
|
+
* @remarks "`explore` is obsolete and always returns `true`. The fog exploration does not record position anymore."
|
415
449
|
*/
|
450
|
+
explore(source: unknown, force?: boolean): true;
|
416
451
|
|
417
452
|
/*
|
418
453
|
* After this point these are not really overridden methods.
|
@@ -428,22 +463,27 @@ declare global {
|
|
428
463
|
|
429
464
|
// Descendant Document operations have been left out because FogExploration does not have any descendant documents.
|
430
465
|
|
431
|
-
|
466
|
+
// context: not null (destructured)
|
467
|
+
static override defaultName(context?: Document.DefaultNameContext<"FogExploration", FogExploration.Parent>): string;
|
432
468
|
|
469
|
+
// data: not null (parameter default only), context: not null (destructured)
|
433
470
|
static override createDialog(
|
434
471
|
data?: FogExploration.CreateData,
|
435
|
-
context?: Document.CreateDialogContext<
|
472
|
+
context?: Document.CreateDialogContext<"FogExploration", FogExploration.Parent>,
|
436
473
|
): Promise<FogExploration.Stored | null | undefined>;
|
437
474
|
|
475
|
+
// options: not null (parameter default only)
|
438
476
|
static override fromDropData(
|
439
477
|
data: Document.DropData<FogExploration.Implementation>,
|
440
|
-
options?:
|
478
|
+
options?: AnyObject,
|
441
479
|
): Promise<FogExploration.Implementation | undefined>;
|
442
480
|
|
443
481
|
static override fromImport(
|
444
482
|
source: FogExploration.Source,
|
445
|
-
context?: Document.FromImportContext<FogExploration.Parent
|
483
|
+
context?: Document.FromImportContext<FogExploration.Parent> | null,
|
446
484
|
): Promise<FogExploration.Implementation>;
|
485
|
+
|
486
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
447
487
|
}
|
448
488
|
|
449
489
|
namespace FogExploration {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ConfiguredFolder } from "../../../../configuration/index.d.mts";
|
2
|
-
import type { InexactPartial, Merge } from "
|
2
|
+
import type { AnyObject, InexactPartial, IntentionalPartial, Merge, NullishProps } from "#utils";
|
3
3
|
import type Document from "../../../common/abstract/document.d.mts";
|
4
4
|
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
5
5
|
import type { fields } from "../../../common/data/module.d.mts";
|
@@ -145,7 +145,7 @@ declare global {
|
|
145
145
|
type Collection = Folders.Configured;
|
146
146
|
|
147
147
|
/**
|
148
|
-
* An instance of `Folder` that comes from the database but failed validation
|
148
|
+
* An instance of `Folder` that comes from the database but failed validation meaning that
|
149
149
|
* its `system` and `_source` could theoretically be anything.
|
150
150
|
*/
|
151
151
|
interface Invalid<out SubType extends Folder.SubType = Folder.SubType> extends Document.Invalid<OfType<SubType>> {}
|
@@ -214,9 +214,10 @@ declare global {
|
|
214
214
|
_id: fields.DocumentIdField;
|
215
215
|
|
216
216
|
/** The name of this Folder */
|
217
|
-
|
217
|
+
// FIXME: This field is `required` with no `initial`, so actually required for construction; Currently an AssignmentType override is required to enforce this
|
218
|
+
name: fields.StringField<{ required: true; blank: false; textSearch: true }, string>;
|
218
219
|
|
219
|
-
/** The document type which this Folder contains, from CONST.FOLDER_DOCUMENT_TYPES */
|
220
|
+
/** The document type which this Folder contains, from {@linkcode CONST.FOLDER_DOCUMENT_TYPES} */
|
220
221
|
type: fields.DocumentTypeField<typeof BaseFolder>;
|
221
222
|
|
222
223
|
/**
|
@@ -413,12 +414,74 @@ declare global {
|
|
413
414
|
/**
|
414
415
|
* Actual document types that go in folders
|
415
416
|
*/
|
416
|
-
type DocumentType = Exclude<
|
417
|
+
type DocumentType = Exclude<CONST.FOLDER_DOCUMENT_TYPES, "Compendium">;
|
417
418
|
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
419
|
+
type DocumentCollection<Type extends SubType> = Type extends "Compendium"
|
420
|
+
? Collection.Any | undefined
|
421
|
+
: WorldCollection.Any;
|
422
|
+
|
423
|
+
/** @internal */
|
424
|
+
type _ExportToCompendiumOptions = NullishProps<{
|
425
|
+
/**
|
426
|
+
* Update existing entries in the Compendium pack, matching by name
|
427
|
+
* @defaultValue `false`
|
428
|
+
*/
|
429
|
+
updateByName: boolean;
|
430
|
+
|
431
|
+
/**
|
432
|
+
* Retain the original _id attribute when updating an entity
|
433
|
+
* @defaultValue `false`
|
434
|
+
* @remarks No default applied despite Foundry's typing, but `undefined` will be treated falsily
|
435
|
+
*/
|
436
|
+
keepId: boolean;
|
437
|
+
|
438
|
+
/**
|
439
|
+
* Retain the existing Folder structure
|
440
|
+
* @defaultValue `false`
|
441
|
+
* @remarks No default applied despite Foundry's typing, but `undefined` will be treated falsily
|
442
|
+
*/
|
443
|
+
keepFolders: boolean;
|
444
|
+
|
445
|
+
/**
|
446
|
+
* A target folder id to which the documents will be exported
|
447
|
+
* @defaultValue `null`
|
448
|
+
*/
|
449
|
+
folder: string;
|
450
|
+
}>;
|
451
|
+
|
452
|
+
/** @privateRemarks `keepId` omitted to override comment */
|
453
|
+
interface ExportToCompendiumOptions
|
454
|
+
extends _ExportToCompendiumOptions,
|
455
|
+
Omit<ClientDocument.ToCompendiumOptions, "keepId"> {}
|
456
|
+
|
457
|
+
/** @internal */
|
458
|
+
type _ExportDialogOptions = NullishProps<{
|
459
|
+
/**
|
460
|
+
* @remarks A compendium to preselect in the dialog
|
461
|
+
* @defaultValue `null`
|
462
|
+
*/
|
463
|
+
pack: string;
|
464
|
+
|
465
|
+
/**
|
466
|
+
* @remarks Initial state of the `Merge by Name` checkbox in the dialog
|
467
|
+
* @defaultValue `true`
|
468
|
+
*/
|
469
|
+
merge: boolean;
|
470
|
+
|
471
|
+
/**
|
472
|
+
* @remarks Initial state of the `Keep Document IDs` checkbox in the dialog
|
473
|
+
* @defaultValue `true`
|
474
|
+
*/
|
475
|
+
keepId: boolean;
|
476
|
+
|
477
|
+
/**
|
478
|
+
* @remarks Initial state of the `Keep Folder Structure` checkbox in the dialog
|
479
|
+
* @defaultValue `true`
|
480
|
+
*/
|
481
|
+
keepFolders: boolean;
|
482
|
+
}>;
|
483
|
+
|
484
|
+
interface ExportDialogOptions extends _ExportDialogOptions, IntentionalPartial<Dialog.Options> {}
|
422
485
|
|
423
486
|
// TODO: Handle compendium. This requires the index to be configured.
|
424
487
|
type Contents<SubType extends Folder.SubType> = Document.ImplementationFor<Extract<SubType, Document.Type>>[];
|
@@ -427,6 +490,16 @@ declare global {
|
|
427
490
|
type DocumentClass<SubType extends Folder.SubType> = Document.ImplementationClassFor<
|
428
491
|
Extract<SubType, Document.Type>
|
429
492
|
>;
|
493
|
+
|
494
|
+
/**
|
495
|
+
* @remarks Rather than a simple `Dialog`, {@link Folder.createDialog | `Folder.createDialog`} creates a {@link FolderConfig | `FolderConfig`},
|
496
|
+
* passing along the returned `Promise`'s `resolve` to the app.
|
497
|
+
*/
|
498
|
+
// TODO (v13): `options.document` is also force set
|
499
|
+
interface CreateDialogOptions extends InexactPartial<Omit<FolderConfig.Options, "resolve">> {
|
500
|
+
/** @deprecated This is force set to the `resolve` of the Promise returned by this `createDialog` call */
|
501
|
+
resolve?: never;
|
502
|
+
}
|
430
503
|
}
|
431
504
|
|
432
505
|
/**
|
@@ -449,14 +522,18 @@ declare global {
|
|
449
522
|
*
|
450
523
|
* @remarks For folders that have been populated by the {@link SidebarDirectory | `SidebarDirectory`}, this is always be defined
|
451
524
|
*/
|
452
|
-
depth
|
525
|
+
depth: number | undefined;
|
453
526
|
|
454
527
|
/**
|
455
528
|
* An array of other Folders which are the displayed children of this one. This differs from the results of
|
456
|
-
* {@link Folder.getSubfolders | `Folder
|
457
|
-
* in the UI.
|
529
|
+
* {@link Folder.getSubfolders | `Folder#getSubfolders`} because reports the subset of child folders which
|
530
|
+
* are displayed to the current User in the UI.
|
531
|
+
* @remarks Despite Foundry's typing, this is not an array of Folder documents.
|
532
|
+
*
|
533
|
+
* Initialized by {@link DirectoryCollection.initializeTree | `DirectoryCollection#initializeTree`}, so always
|
534
|
+
* `undefined` in temporary documents, and prior to first UI render in stored documents
|
458
535
|
*/
|
459
|
-
children: Folder.Implementation[];
|
536
|
+
children: DirectoryCollectionMixin.TreeNode<Folder.Implementation>[] | undefined;
|
460
537
|
|
461
538
|
/**
|
462
539
|
* Return whether the folder is displayed in the sidebar to the current User.
|
@@ -483,7 +560,8 @@ declare global {
|
|
483
560
|
* A world Folder containing CompendiumCollections will have neither.
|
484
561
|
*/
|
485
562
|
// TODO: Compendium Pack index
|
486
|
-
|
563
|
+
// TODO: Infer specific world collection from SubType
|
564
|
+
get documentCollection(): Folder.DocumentCollection<SubType>;
|
487
565
|
|
488
566
|
/**
|
489
567
|
* Return whether the folder is currently expanded within the sidebar interface.
|
@@ -495,24 +573,24 @@ declare global {
|
|
495
573
|
*/
|
496
574
|
get ancestors(): Folder.Implementation[];
|
497
575
|
|
498
|
-
|
499
|
-
|
500
|
-
* For type simplicity it is left off. These methods historically have been the source of a large amount of computation from tsc.
|
501
|
-
*/
|
576
|
+
// _preCreate overridden but with no signature changes.
|
577
|
+
// For type simplicity it is left off. These methods historically have been the source of a large amount of computation from tsc.
|
502
578
|
|
579
|
+
/** @remarks Creates and renders a {@link FolderConfig | `FolderConfig`} instead of a simple Dialog */
|
580
|
+
// data, options: not null (parameter defaults only)
|
503
581
|
static override createDialog(
|
504
582
|
data?: Document.CreateDialogData<Folder.CreateData>,
|
505
|
-
context?:
|
583
|
+
context?: Folder.CreateDialogOptions,
|
506
584
|
): Promise<Folder.Stored | null | undefined>;
|
507
585
|
|
508
586
|
/**
|
509
587
|
* Export all Documents contained in this Folder to a given Compendium pack.
|
510
588
|
* Optionally update existing Documents within the Pack by name, otherwise append all new entries.
|
511
589
|
* @param pack - A Compendium pack to which the documents will be exported
|
512
|
-
* @param options - Additional options which customize how content is exported. See {@link ClientDocument.toCompendium | `ClientDocument#toCompendium`}
|
513
|
-
* (default: `{}`)
|
590
|
+
* @param options - Additional options which customize how content is exported. See {@link ClientDocument.toCompendium | `ClientDocument#toCompendium`} (default: `{}`)
|
514
591
|
* @returns The updated Compendium Collection instance
|
515
592
|
*/
|
593
|
+
// options: not null (parameter default only)
|
516
594
|
exportToCompendium<Metadata extends CompendiumCollection.Metadata>(
|
517
595
|
pack: CompendiumCollection<Metadata>,
|
518
596
|
options?: Folder.ExportToCompendiumOptions,
|
@@ -521,22 +599,21 @@ declare global {
|
|
521
599
|
/**
|
522
600
|
* Provide a dialog form that allows for exporting the contents of a Folder into an eligible Compendium pack.
|
523
601
|
* @param pack - A pack ID to set as the default choice in the select input
|
524
|
-
* @param options - Additional options passed to the Dialog.prompt method
|
525
|
-
* (default: `{}`)
|
602
|
+
* @param options - Additional options passed to the Dialog.prompt method (default: `{}`)
|
526
603
|
* @returns A Promise which resolves or rejects once the dialog has been submitted or closed
|
527
604
|
*
|
528
|
-
* @remarks - Foundry documents `pack` as just being a `string` but it is unused and Foundry itself
|
605
|
+
* @remarks - Foundry documents `pack` as just being a `string` but it is unused in favor of `options.pack`, and Foundry itself
|
529
606
|
* calls `exportDialog` with `null`.
|
530
607
|
*/
|
531
|
-
|
608
|
+
// options: not null (parameter default only)
|
609
|
+
exportDialog(pack: string | null, options?: Folder.ExportDialogOptions): Promise<void>;
|
532
610
|
|
533
611
|
/**
|
534
612
|
* Get the Folder documents which are sub-folders of the current folder, either direct children or recursively.
|
535
|
-
* @param recursive - Identify child folders recursively, if false only direct children are returned
|
536
|
-
* (default: `false`)
|
613
|
+
* @param recursive - Identify child folders recursively, if false only direct children are returned (default: `false`)
|
537
614
|
* @returns An array of Folder documents which are subfolders of this one
|
538
615
|
*/
|
539
|
-
getSubfolders(recursive?: boolean): Folder.Implementation[];
|
616
|
+
getSubfolders(recursive?: boolean | null): Folder.Implementation[];
|
540
617
|
|
541
618
|
/**
|
542
619
|
* Get the Folder documents which are parent folders of the current folder or any if its parents.
|
@@ -558,16 +635,22 @@ declare global {
|
|
558
635
|
|
559
636
|
// Descendant Document operations have been left out because Folder does not have any descendant documents.
|
560
637
|
|
561
|
-
|
638
|
+
// context: not null (destructured)
|
639
|
+
static override defaultName(context?: Document.DefaultNameContext<"Folder", Folder.Parent>): string;
|
562
640
|
|
641
|
+
// options: not null (parameter default only)
|
563
642
|
static override fromDropData(
|
564
643
|
data: Document.DropData<Folder.Implementation>,
|
565
|
-
options?:
|
644
|
+
options?: AnyObject,
|
566
645
|
): Promise<Folder.Implementation | undefined>;
|
567
646
|
|
568
647
|
static override fromImport(
|
569
648
|
source: Folder.Source,
|
570
|
-
context?: Document.FromImportContext<Folder.Parent
|
649
|
+
context?: Document.FromImportContext<Folder.Parent> | null,
|
571
650
|
): Promise<Folder.Implementation>;
|
651
|
+
|
652
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
653
|
+
|
654
|
+
#Folder: true;
|
572
655
|
}
|
573
656
|
}
|
@@ -3,7 +3,7 @@ import type { documents } from "../../../client-esm/client.d.mts";
|
|
3
3
|
import type Document from "../../../common/abstract/document.d.mts";
|
4
4
|
import type { fields } from "../../../common/data/module.d.mts";
|
5
5
|
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
6
|
-
import type { AnyObject, Merge } from "
|
6
|
+
import type { AnyObject, Merge } from "#utils";
|
7
7
|
|
8
8
|
declare global {
|
9
9
|
namespace Item {
|
@@ -223,7 +223,7 @@ declare global {
|
|
223
223
|
type Collection = Items.Configured;
|
224
224
|
|
225
225
|
/**
|
226
|
-
* An instance of `Item` that comes from the database but failed validation
|
226
|
+
* An instance of `Item` that comes from the database but failed validation meaning that
|
227
227
|
* its `system` and `_source` could theoretically be anything.
|
228
228
|
*/
|
229
229
|
interface Invalid<out SubType extends Item.SubType = Item.SubType> extends Document.Invalid<OfType<SubType>> {}
|
@@ -292,9 +292,11 @@ declare global {
|
|
292
292
|
_id: fields.DocumentIdField;
|
293
293
|
|
294
294
|
/** The name of this Item */
|
295
|
-
|
295
|
+
// FIXME: required with no initial, assignment type override required
|
296
|
+
name: fields.StringField<{ required: true; blank: false; textSearch: true }, string>;
|
296
297
|
|
297
298
|
/** An Item subtype which configures the system data model applied */
|
299
|
+
// TODO: required with no initial, needs assignment type override
|
298
300
|
type: fields.DocumentTypeField<typeof documents.BaseItem>;
|
299
301
|
|
300
302
|
/**
|
@@ -302,7 +304,7 @@ declare global {
|
|
302
304
|
* @defaultValue `null`
|
303
305
|
*/
|
304
306
|
img: fields.FilePathField<{
|
305
|
-
categories: "IMAGE"
|
307
|
+
categories: ["IMAGE"];
|
306
308
|
initial: (data: unknown) => string;
|
307
309
|
}>;
|
308
310
|
|
@@ -507,6 +509,11 @@ declare global {
|
|
507
509
|
Item.Metadata.Embedded
|
508
510
|
>;
|
509
511
|
|
512
|
+
interface GetDefaultArtworkReturn {
|
513
|
+
/** @defaultValue `Item.DEFAULT_ICON` */
|
514
|
+
img: string;
|
515
|
+
}
|
516
|
+
|
510
517
|
/**
|
511
518
|
* @deprecated {@link Item.Database | `Item.DatabaseOperation`}
|
512
519
|
*/
|
@@ -556,23 +563,23 @@ declare global {
|
|
556
563
|
/**
|
557
564
|
* A convenience alias of Item#parent which is more semantically intuitive
|
558
565
|
*/
|
559
|
-
get actor():
|
566
|
+
get actor(): Actor.Implementation | null;
|
560
567
|
|
561
568
|
/**
|
562
569
|
* Provide a thumbnail image path used to represent this document.
|
563
570
|
*/
|
564
|
-
get thumbnail():
|
571
|
+
get thumbnail(): string;
|
565
572
|
|
566
573
|
/**
|
567
574
|
* A convenience alias of Item#isEmbedded which is preserves legacy support
|
568
575
|
*/
|
569
|
-
get isOwned():
|
576
|
+
get isOwned(): boolean;
|
570
577
|
|
571
578
|
/**
|
572
579
|
* Return an array of the Active Effect instances which originated from this Item.
|
573
580
|
* The returned instances are the ActiveEffect instances which exist on the Item itself.
|
574
581
|
*/
|
575
|
-
get transferredEffects():
|
582
|
+
get transferredEffects(): ActiveEffect.Implementation[];
|
576
583
|
|
577
584
|
/**
|
578
585
|
* Prepare a data object which defines the data schema used by dice roll commands against this Item
|
@@ -580,9 +587,7 @@ declare global {
|
|
580
587
|
*/
|
581
588
|
getRollData(): AnyObject;
|
582
589
|
|
583
|
-
|
584
|
-
* @privateRemarks _preCreate, _onCreateDocuments and _onDeleteDocuments are all overridden but with no signature changes from BaseItem.
|
585
|
-
*/
|
590
|
+
// _preCreate, _onCreateOperation and _onDeleteOperation are all overridden but with no signature changes from BaseItem.
|
586
591
|
|
587
592
|
/*
|
588
593
|
* After this point these are not really overridden methods.
|
@@ -598,7 +603,7 @@ declare global {
|
|
598
603
|
|
599
604
|
/**
|
600
605
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
601
|
-
* this method must be
|
606
|
+
* this method must be overridden like so:
|
602
607
|
* ```typescript
|
603
608
|
* class SwadeItem extends Item {
|
604
609
|
* protected override _preCreateDescendantDocuments(...args: Item.PreCreateDescendantDocumentsArgs) {
|
@@ -616,7 +621,7 @@ declare global {
|
|
616
621
|
|
617
622
|
/**
|
618
623
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
619
|
-
* this method must be
|
624
|
+
* this method must be overridden like so:
|
620
625
|
* ```typescript
|
621
626
|
* class GurpsItem extends Item {
|
622
627
|
* protected override _onCreateDescendantDocuments(...args: Item.OnCreateDescendantDocumentsArgs) {
|
@@ -634,7 +639,7 @@ declare global {
|
|
634
639
|
|
635
640
|
/**
|
636
641
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
637
|
-
* this method must be
|
642
|
+
* this method must be overridden like so:
|
638
643
|
* ```typescript
|
639
644
|
* class LancerItem extends Item {
|
640
645
|
* protected override _preUpdateDescendantDocuments(...args: Item.OnUpdateDescendantDocuments) {
|
@@ -652,7 +657,7 @@ declare global {
|
|
652
657
|
|
653
658
|
/**
|
654
659
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
655
|
-
* this method must be
|
660
|
+
* this method must be overridden like so:
|
656
661
|
* ```typescript
|
657
662
|
* class Ptr2eItem extends Item {
|
658
663
|
* protected override _onUpdateDescendantDocuments(...args: Item.OnUpdateDescendantDocumentsArgs) {
|
@@ -670,7 +675,7 @@ declare global {
|
|
670
675
|
|
671
676
|
/**
|
672
677
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
673
|
-
* this method must be
|
678
|
+
* this method must be overridden like so:
|
674
679
|
* ```typescript
|
675
680
|
* class KultItem extends Item {
|
676
681
|
* protected override _preDeleteDescendantDocuments(...args: Item.PreDeleteDescendantDocumentsArgs) {
|
@@ -688,7 +693,7 @@ declare global {
|
|
688
693
|
|
689
694
|
/**
|
690
695
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
691
|
-
* this method must be
|
696
|
+
* this method must be overridden like so:
|
692
697
|
* ```typescript
|
693
698
|
* class BladesItem extends Item {
|
694
699
|
* protected override _onDeleteDescendantDocuments(...args: Item.OnUpdateDescendantDocuments) {
|
@@ -704,21 +709,26 @@ declare global {
|
|
704
709
|
*/
|
705
710
|
protected override _onDeleteDescendantDocuments(...args: Item.OnDeleteDescendantDocumentsArgs): void;
|
706
711
|
|
707
|
-
|
712
|
+
// context: not null (destructured)
|
713
|
+
static override defaultName(context?: Document.DefaultNameContext<"Item", Item.Parent>): string;
|
708
714
|
|
715
|
+
// data: not null (parameter default only), context: not null (destructured)
|
709
716
|
static override createDialog(
|
710
717
|
data?: Document.CreateDialogData<Item.CreateData>,
|
711
|
-
context?: Document.CreateDialogContext<Item
|
718
|
+
context?: Document.CreateDialogContext<"Item", Item.Parent>,
|
712
719
|
): Promise<Item.Stored | null | undefined>;
|
713
720
|
|
721
|
+
// options: not null (parameter default only)
|
714
722
|
static override fromDropData(
|
715
723
|
data: Document.DropData<Item.Implementation>,
|
716
|
-
options?:
|
724
|
+
options?: AnyObject,
|
717
725
|
): Promise<Item.Implementation | undefined>;
|
718
726
|
|
719
727
|
static override fromImport(
|
720
728
|
source: Item.Source,
|
721
|
-
context?: Document.FromImportContext<Item.Parent
|
729
|
+
context?: Document.FromImportContext<Item.Parent> | null,
|
722
730
|
): Promise<Item.Implementation>;
|
731
|
+
|
732
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
723
733
|
}
|
724
734
|
}
|