Protected
_pagesThe cached list of processed page entries.
Static
Internal
_appAn incrementing integer Application ID.
Static
Internal
_maxZThe current maximum z-index of any displayed Application.
Static
BASE_Designates which upstream Application class in this class' inheritance chain is the base application. Any DEFAULT_OPTIONS of super-classes further upstream of the BASE_APPLICATION are ignored. Hook events for super-classes further upstream of the BASE_APPLICATION are not dispatched.
Static
DEFAULT_Static
emittedStatic
OWNERSHIP_Icons for page ownership.
Static
PARTSStatic
RENDER_The sequence of rendering states that describe the Application life-cycle.
Static
TABSConfiguration of application tabs, with an entry per tab group.
Static
VIEW_The available view modes for journal entries.
The JournalEntry for this sheet.
Whether the sheet is in multi-page mode.
Whether the journal is locked and disallows modifications to the table of contents.
Get the JournalEntry's current view mode.
The currently active IntersectionObserver.
The ID of the currently-viewed page.
The index of the currently-viewed page in the list of available pages.
The pages that are currently scrolled into view and marked as 'active' in the sidebar.
Get the JournalEntry's current search mode.
The expanded state of the sidebar.
Prompt the user with a Dialog for creation of a new JournalEntryPage.
Retrieve the sheet instance for rendering this page inline.
The page instance or its ID.
Turn to a specific page.
The ID of the page to turn to.
Optional
options: { anchor?: string } = {}Optional
anchor?: stringOptionally an anchor slug to focus within that page.
Determine whether a given page is visible to the current user.
The page.
Turn to the next page.
Turn to the previous page.
Toggle the search mode for this journal entry between name and full text search.
Toggle the collapsed or expanded state of the sidebar.
Protected
_activateProtected
Highlights the currently-viewed page in the sidebar.
Protected
_canProtected
Determine if drop operations are permitted.
The candidate HTML selector for dragging
Can the current user drag this selector?
Protected
_canProtected
Determine if drag operations are permitted.
The candidate HTML selector for dragging
Can the current user drag this selector?
Protected
_getProtected
Get the set of ContextMenu options which should be used for journal entry pages in the sidebar.
Protected
_observeProtected
Create an intersection observer to maintain a list of headings that are in view. This is much more performant than calling getBoundingClientRect on all headings whenever we want to determine this list.
Protected
_observeProtected
Create an intersection observer to maintain a list of pages that are in view.
Protected
_onProtected
Handle clicking an image to pop it out for fullscreen view.
The triggering click event.
Protected
_onProtected
Handle closing the context menu.
The element the context menu has been triggered for.
Protected
_onProtected
Handle opening the context menu.
The element the context menu has been triggered for.
Protected
_onProtected
Handle drag operations.
Protected
_onProtected
Handle drop operations.
Protected
_onProtected
Handle editing one of the journal entry's pages.
The triggering event.
The action target.
Protected
_onProtected
Handle new pages scrolling into view.
An array of element that have scrolled into or out of view.
The IntersectionObserver that invoked this callback.
Protected
_onProtected
Handle journal entry search and filtering.
The keyboard input event.
The input search string.
The regular expression query that should be matched against.
The container to filter items from.
Protected
_onProtected
Handle a request to show the JournalEntry to other Users.
Protected
_prepareProtected
_prepareProtected
Prepare render context for the pages part.
Protected
_prepareProtected
Prepare render context for the sidebar part.
Protected
_prepareProtected
Prepare the sidebar table of contents.
Protected
_renderProtected
Add headings to the table of contents for the given node.
The HTML node of the page's rendered contents.
The page's table of contents.
Protected
_renderProtected
Render the page view for a page sheet.
The existing page element in the journal entry view.
The page sheet.
Protected
_renderProtected
Update child views inside the main sheet.
Protected
_setProtected
Update which page of the journal sheet should be currently rendered. This can be controlled by options passed into the render method, or by subclass override.
Optional
options: DocumentSheetRenderOptions = {}Protected
_synchronizeProtected
If the set of active pages has changed, various elements in the sidebar will expand and collapse. For particularly long ToCs, this can leave the scroll position of the sidebar in a seemingly random state. We try to do our best to sync the sidebar scroll position with the current journal viewport.
Protected
_updateProtected
Update the disabled state of the previous and next page buttons.
Static
_migrateInternal
Provide a deprecation path for converted V1 document sheets.
The first parameter received by this class's constructor
Any additional parameters received
Static
inheritanceIterate over the inheritance chain of this Application. The chain includes this Application itself and all parents until the base application is encountered.
Static
parseCSSDimensionParse a CSS style rule into a number of pixels which apply to that dimension.
The CSS style rule
The relevant dimension of the parent element
The parsed style dimension in pixels
Static
waitWait for any images in the given element to load.
The element.
The Application responsible for displaying and editing a single JournalEntry Document.
Mixes
HandlebarsApplication