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.
StaticBASE_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.
StaticDEFAULT_StaticemittedStaticOWNERSHIP_Icons for page ownership.
StaticPARTSStaticRENDER_The sequence of rendering states that describe the Application life-cycle.
StaticTABSConfiguration of application tabs, with an entry per tab group.
StaticVIEW_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.
Optionaloptions: { anchor?: string } = {}Optionalanchor?: 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_activateProtectedHighlights the currently-viewed page in the sidebar.
Protected_canProtectedDetermine if drop operations are permitted.
The candidate HTML selector for dragging
Can the current user drag this selector?
Protected_canProtectedDetermine if drag operations are permitted.
The candidate HTML selector for dragging
Can the current user drag this selector?
Protected_getProtectedGet the set of ContextMenu options which should be used for journal entry pages in the sidebar.
Protected_observeProtectedCreate 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_observeProtectedCreate an intersection observer to maintain a list of pages that are in view.
Protected_onProtectedHandle clicking an image to pop it out for fullscreen view.
The triggering click event.
Protected_onProtectedHandle closing the context menu.
The element the context menu has been triggered for.
Protected_onProtectedHandle opening the context menu.
The element the context menu has been triggered for.
Protected_onProtectedHandle drag operations.
Protected_onProtectedHandle drop operations.
Protected_onProtectedHandle editing one of the journal entry's pages.
The triggering event.
The action target.
Protected_onProtectedHandle new pages scrolling into view.
An array of element that have scrolled into or out of view.
The IntersectionObserver that invoked this callback.
Protected_onProtectedHandle 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_onProtectedHandle a request to show the JournalEntry to other Users.
Protected_prepareProtected_prepareProtectedPrepare render context for the pages part.
Protected_prepareProtectedPrepare render context for the sidebar part.
Protected_prepareProtectedPrepare the sidebar table of contents.
Protected_renderProtectedAdd 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_renderProtectedRender the page view for a page sheet.
The existing page element in the journal entry view.
The page sheet.
Protected_renderProtectedUpdate child views inside the main sheet.
Protected_setProtectedUpdate 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.
Optionaloptions: DocumentSheetRenderOptions = {}Protected_synchronizeProtectedIf 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_updateProtectedUpdate the disabled state of the previous and next page buttons.
Static_migrateInternalProvide a deprecation path for converted V1 document sheets.
The first parameter received by this class's constructor
Any additional parameters received
StaticinheritanceIterate over the inheritance chain of this Application. The chain includes this Application itself and all parents until the base application is encountered.
StaticparseCSSDimensionParse 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
StaticwaitWait for any images in the given element to load.
The element.
The Application responsible for displaying and editing a single JournalEntry Document.
Mixes
HandlebarsApplication