- Fix hasData return while data is false when casted as a boolean (pull #128, fixes #127)
- Fix an addresses keyup issue (pull #141)
- Fix remaining body class even if no modal is opened (pull #143, fixes #119)
- Fix hasData() method returning undefined value after setData (pull #143, fixes #108)
- BREAKING CHANGES: refactor modal templating with new selectors and containers (DOM)
- Fix lint, refactor ngClass
- Add an option to display the modal at the location of a target element
- Add custom class to center a modal vertically
- Replaced Angular cycle checks timeouts by observables
- BREAKING CHANGES: Move modal component style to separated SCSS/CSS files
- Add default animations css class (top, right, bottom, left)
- Add SCSS variables to improve customization possibilities
- Add allowOutsideClick option (pull #84)
- Enhance Events triggering on open and close actions
- Fix a non-issued error on modal
escapable
(previouslyescapeAble
, c.f. Features below) option that wasn't closing the modal on escape event - Fix a non-issued error on modal
escapable
event that was called in each modal even if not visible. Now it only calls in the visible modals
- BREAKING CHANGES: rename
escapeAble
option toescapable
- Create default z-index and check all modals (pull #79)
- Add issue template (pull #80)
- Add allowOutsideClick option (pull #84)
- Rename
allowOutsideClick
option from PR #84 todismissable
for more consistency - Update unit tests
- Update demo dependencies
- Update the demo with
escapable
anddismissable
options examples
- Add events when actions ends (pull #65)
- Update demo dependencies
- Update library dependencies
- Update all the library build process with latest tools version
- Fix modal close / dismiss issue on projects which use
ChangeDetectionStrategy.OnPush
, closes #47 - Fix a non-issued error on modal prototypes functions where Angular check cycle was triggering an error of type : "value changed after it was checked" (e.g.: if you was watching
modal.hasData()
from a component's view).
- Update project dependencies
- Remove
modalData
fromNgxSmartModalService
- Update the demo
- Now, each modal has its own private
data
property with public accessors (always available from theNgxSmartModalService
) - Modal data no more wrapped into an array. This way, retrieving modal data is easier.
- Privatize the
data
of each modal. Accessible by public accessors - Remove
getAllModalData()
andresetAllModalData()
fromNgxSmartModalService
because- too permissive
- not very useful given that it could be coded if needed depending on the project needs
- it was using the
NgxSmartModalService
modalData
array (no more used)
- Add events
onDataAdded
andonDataRemoved
on each modal