- Fixed incorrect
isOpenproperty.
- Fixed event names in
onandoffmethods.
- Added the
manageFocusoption. - Converted to TypeScript.
- Added the
idproperty to access the instances id.
- Fixed issue with incorrect event target when using domapi.
- The 'dialog' prefix is no longer required when using the
onandoffmethods.
- Added the
elementproperty. - Added the ability to set the focused element when calling
close(). - Added the ability to unmount the domapi.
- Added ability to access the elements being watched by the domapi.
- Changed: The domapi now needs to be explicitly mounted.
- Changed: The default browser action is now prevented when using the domapi.
- Changed: The element passed into
open()is now the element that gets focused on open. - Removed the
elementsproperty.
- Added basic data attribute API.
- Added ability to cancel opening and closing via
event.preventDefault. - Added
initiatedproperty to dialog instance. - Now uses
aria-modal="true"and aligns with WAI-ARIA Authoring Practices 1.1. - Events now use the native CustomEvent API.
- Event names are now prefixed with
dialog:. - No longer provides a default export, use
import { dialog } from @rynpsc/dialoginstead. - Removed
mainparameter from constructor. - Removed
autoInitoption, dialogs must now be manually created withcreate(). - Removed
focusoption, autofocus element should now be defined using thedata-dialog-autofocusattribute.
- Added
aria-hiddenattribute to main and dialog elements.
- Added
create,destroy,openandcloseevents. - Added event subscription via
onandoffmethods. - Removed
onCreate,onDestroy,onOpenandonClosecallbacks.
- Initial release.