Creates a new SharingModal instance.
The parent HTML element to attach the modal to
Event handlers for modal interactions
Configuration options
PrivateallPrivateclickPrivateconfigPrivatecontainerPrivatedisplayedPrivatedisplayedPrivateeventsPrivatefocusedPrivatefooterPrivatekeyPrivatemodalPrivateoverlayPrivatequeryPrivateselectedPrivatestatePrivate ReadonlyTRANSITION_Transition duration in milliseconds
PrivatecopyCopy shareable link and close modal.
PrivatecreateCreate the modal footer.
PrivatecreateCreate the modal header.
PrivatecreateCreate the overlay DOM structure.
PrivatecreateCreate a query list item element.
Clean up all resources.
PrivatedestroyRemove overlay from DOM and clean up.
PrivategetCalculate current URL length for selected queries.
Get the currently selected queries in execution order.
Get current modal state.
PrivatehasCheck if there are more queries to load.
Hide the modal with fade-out animation.
Check if modal is currently visible or in the process of showing.
PrivateloadLoad initial batch of queries.
PrivateloadLoad more older queries.
PrivatemoveMove focus down (to newer queries). In display order, newer queries are at the bottom (lower display indices).
PrivatemoveMove focus up (to older queries). In display order, older queries are at the top (higher display indices). Auto-loads more queries when reaching the top.
PrivateremoveRemove click handler.
PrivateremoveRemove keyboard event handler.
PrivaterenderRender the query list.
PrivatesetupSet up click handler to close when clicking outside the modal.
PrivatesetupSet up keyboard event handler.
Show the modal with the given queries.
Array of SQL queries from history (oldest first)
PrivateshowShow warning when character limit is reached.
PrivatetoggleToggle selection of a query.
PrivateupdateUpdate focused item styling.
PrivateupdateUpdate the footer with current character count.
PrivateupdateUpdate a single query item's UI after selection change.
PrivatewouldCheck if adding a query would exceed the limit.
Manages the sharing modal overlay for selecting queries to share. Displays query history, allows selection, and generates shareable URLs.