Skip to content

Releases: jirikavi/AngularJS-Toaster

v3.0.0

19 Jan 20:11
b07ad09
Compare
Choose a tag to compare
  • Adds a new safer option for binding html to the toast with the bodyOutputType.html option.
  • Adds two-way binding for directiveData.
  • Fixes toast margins.

Toast instance passed to onShow and onHide

20 Aug 13:43
Compare
Choose a tag to compare

Features

  • The toast instance is now passed to the onShowCallback and onHideCallback handlers when invoked.

Documentation

  • Documentation for handlers.

Chores

  • Cleanup of test dependencies and added new npm scripts to make test execution easier.

Individual tapToDismissOverride

07 Nov 19:52
Compare
Choose a tag to compare

Features

  • Added a tapToDismiss override at the individual toast level.
  • Moved the toast template to templateCache to allow the template to be easily overriden.

Bug Fixes

  • Fix for click handler duplicating events.

Documentation

  • Documentation for clear handler.

2.0.0 Consolidate uid/id/toasterId into single toasterId

12 Apr 19:37
Compare
Choose a tag to compare

Features

  • all toaster.pop() and toaster pop helper methods (toaster.success(), toaster.error(), etc) return a toast wrapper object composed of a toasterId and toastId.
  • toast.clear() accepts either toasterId and toastId arguments or the toast wrapper object returned from toast.pop().
  • If a toastId is not provided when creating a new toast, a GUID is generated and assigned to the toast before emitting to receiving containers.

Breaking Changes

  • uid and id removed and consolidated into a single toastId
  • prevent duplicates now checks for either last body match OR ID match
    on any toast, since toastId is now always defined
  • prevent duplicates no longer removes the toast first if the id is
    matched, it just returns and does not add the duplicate toast
  • id is no longer incremented per toast container.

Improved directiveTemplate validation

18 Feb 20:14
Compare
Choose a tag to compare
  • Added additional validation to directiveTemplate based on feedback from
    #194
  • Added additional documentation to the README to describe the
    restrictions.
  • Added pointer-events:auto to #toaster-container to prevent the toast from being seen in conjunction with Ionic modals.

Added onShow callback

06 Feb 02:05
Compare
Choose a tag to compare
  • An onShow callback has been added to match the existing onHide callback.
  • README documentation updated to reflect the callback.
  • Removed unnecessary gulp references from packages.json and the travis build configuration.

Full baseline release

19 Jan 19:34
Compare
Choose a tag to compare

Full, production ready, stable, semantically versioned release.

  • Full test coverage added
  • Full CI build integration added.
  • Additional documentation added.

0.4.16

30 Oct 14:11
Compare
Choose a tag to compare
  • Added a new BodyOutputType: directive, that allows for dynamic rendering and binding of a directive argument and related data.
  • Updated README documentation for the directive BodyOutputType.
  • Corrected existing README example errors.
  • Added new baseline Jasmine tests

0.4.13

30 Oct 15:12
Compare
Choose a tag to compare
  • Add option in function toaster.pop() , toastId to define 'uid', use the function 'toaster.clear ()'
var _toaster = {
                    type:      null,
                    title:     null,
                    body:      null,
                    timeout:   null,
                    toasterId: 'CategoryMenu',
                    toastId:   'CategoryMenuAlert'
                }
  • Add option in function toaster.clear()
    • toaster.clear(); --> clearAll with ToasterId = undefined;
    • toaster.clear('*'); -> ClearAll()
    • toaster.clear('clearID'); -> clearAll() with toaster have ToasterId = 'clearID'
  • toaster.clear('clearID', 'toastID'); -> Just clearAll with toasts have uid = 'toastID' in ToasterId = 'clearID'.