@smart-webcomponents-angular/toast 9.2.20 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/bundles/smart-webcomponents-angular-toast.umd.js +6 -6
  2. package/bundles/smart-webcomponents-angular-toast.umd.min.js +1 -1
  3. package/common/i18n.phonenumbers.min.js +501 -0
  4. package/common/runtime.js +748 -0
  5. package/demo/angular.json +2 -2
  6. package/demo/package.json +1 -1
  7. package/demo/src/tsconfig.app.json +15 -15
  8. package/demo/src/tsconfig.json +23 -23
  9. package/esm2015/toast/smart.toast.js +7 -7
  10. package/fesm2015/smart-webcomponents-angular-toast.js +6 -6
  11. package/fesm2015/smart-webcomponents-angular-toast.js.map +1 -1
  12. package/images/dropable_zone_image.svg +25 -0
  13. package/images/error.png +0 -0
  14. package/images/flags.png +0 -0
  15. package/images/icons-sprite.svg +85 -0
  16. package/images/icons-stack.svg +132 -0
  17. package/images/info.png +0 -0
  18. package/images/magnifier.png +0 -0
  19. package/images/mail.png +0 -0
  20. package/images/radial.svg +1 -0
  21. package/images/success.png +0 -0
  22. package/images/time.png +0 -0
  23. package/images/warning.png +0 -0
  24. package/index.d.ts +3294 -650
  25. package/package.json +1 -1
  26. package/source/modules/smart.toast.js +1 -1
  27. package/source/smart.button.js +2 -2
  28. package/source/smart.element.js +2 -2
  29. package/source/smart.toast.js +2 -2
  30. package/styles/font/smart-icons.eot +0 -0
  31. package/styles/font/smart-icons.svg +58 -4
  32. package/styles/font/smart-icons.ttf +0 -0
  33. package/styles/font/smart-icons.woff +0 -0
  34. package/styles/font/smart-icons.woff2 +0 -0
  35. package/styles/smart.base.css +4 -4
  36. package/styles/smart.common.css +1 -1
  37. package/styles/smart.toast.css +1 -1
  38. package/toast/smart-webcomponents-angular-toast.metadata.json +1 -1
  39. package/toast/smart.toast.d.ts +1 -1
  40. package/demo/src/app/app.component.ts +0 -29
  41. package/demo/src/app/app.module.ts +0 -15
  42. package/demo/src/app/main.ts +0 -6
  43. package/demo/src/main.ts +0 -16
  44. package/demo/src/polyfills.ts +0 -73
@@ -434,7 +434,7 @@ import './../source/modules/smart.toast';
434
434
  _this.eventHandlers = [];
435
435
  /** @description This event is triggered when the toast item is clicked.
436
436
  * @param event. The custom event. */
437
- _this.onClick = new core.EventEmitter();
437
+ _this.onItemClick = new core.EventEmitter();
438
438
  /** @description This event is triggered when the toast item is closed.
439
439
  * @param event. The custom event. */
440
440
  _this.onClose = new core.EventEmitter();
@@ -798,8 +798,8 @@ import './../source/modules/smart.toast';
798
798
  /** @description Add event listeners. */
799
799
  ToastComponent.prototype.listen = function () {
800
800
  var that = this;
801
- that.eventHandlers['clickHandler'] = function (event) { that.onClick.emit(event); };
802
- that.nativeElement.addEventListener('click', that.eventHandlers['clickHandler']);
801
+ that.eventHandlers['itemClickHandler'] = function (event) { that.onItemClick.emit(event); };
802
+ that.nativeElement.addEventListener('itemClick', that.eventHandlers['itemClickHandler']);
803
803
  that.eventHandlers['closeHandler'] = function (event) { that.onClose.emit(event); };
804
804
  that.nativeElement.addEventListener('close', that.eventHandlers['closeHandler']);
805
805
  that.eventHandlers['openHandler'] = function (event) { that.onOpen.emit(event); };
@@ -816,8 +816,8 @@ import './../source/modules/smart.toast';
816
816
  /** @description Remove event listeners. */
817
817
  ToastComponent.prototype.unlisten = function () {
818
818
  var that = this;
819
- if (that.eventHandlers['clickHandler']) {
820
- that.nativeElement.removeEventListener('click', that.eventHandlers['clickHandler']);
819
+ if (that.eventHandlers['itemClickHandler']) {
820
+ that.nativeElement.removeEventListener('itemClick', that.eventHandlers['itemClickHandler']);
821
821
  }
822
822
  if (that.eventHandlers['closeHandler']) {
823
823
  that.nativeElement.removeEventListener('close', that.eventHandlers['closeHandler']);
@@ -870,7 +870,7 @@ import './../source/modules/smart.toast';
870
870
  type: [{ type: core.Input }],
871
871
  unfocusable: [{ type: core.Input }],
872
872
  value: [{ type: core.Input }],
873
- onClick: [{ type: core.Output }],
873
+ onItemClick: [{ type: core.Output }],
874
874
  onClose: [{ type: core.Output }],
875
875
  onOpen: [{ type: core.Output }],
876
876
  onSwipebottom: [{ type: core.Output }],
@@ -21,5 +21,5 @@ import './../source/modules/smart.toast';
21
21
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
22
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
23
  PERFORMANCE OF THIS SOFTWARE.
24
- ***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function l(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((i=i.apply(e,t||[])).next())}))}function o(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}}Object.create;Object.create;var r=function(){function e(e){this.onCreate=new t.EventEmitter,this.onReady=new t.EventEmitter,this.onAttach=new t.EventEmitter,this.onDetach=new t.EventEmitter;var n=this;this.nativeElement=e.nativeElement,n.nativeElement.onAttached=function(){n.onAttach.emit(n.nativeElement)},n.nativeElement.onDetached=function(){n.onDetach.emit(n.nativeElement)}}return e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.addEventListener(e,t,n)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.removeEventListener(e,t,n)},e.prototype.dispatchEvent=function(e){return this.nativeElement.dispatchEvent(e)},e.prototype.blur=function(){this.nativeElement.blur()},e.prototype.click=function(){this.nativeElement.click()},e.prototype.focus=function(e){this.nativeElement.focus(e)},Object.defineProperty(e.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!1,configurable:!0}),e}();r.propDecorators={onCreate:[{type:t.Output}],onReady:[{type:t.Output}],onAttach:[{type:t.Output}],onDetach:[{type:t.Output}],locale:[{type:t.Input}],localizeFormatFunction:[{type:t.Input}],messages:[{type:t.Input}],rightToLeft:[{type:t.Input}],theme:[{type:t.Input}]};var a=window.Smart,l=function(e){function r(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onClick=new t.EventEmitter,i.onClose=new t.EventEmitter,i.onOpen=new t.EventEmitter,i.onSwipebottom=new t.EventEmitter,i.onSwipeleft=new t.EventEmitter,i.onSwiperight=new t.EventEmitter,i.onSwipetop=new t.EventEmitter,i.nativeElement=n.nativeElement,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(r,e),r.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-toast"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(r.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"appendTo",{get:function(){return this.nativeElement?this.nativeElement.appendTo:void 0},set:function(e){this.nativeElement&&(this.nativeElement.appendTo=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoClose",{get:function(){return this.nativeElement?this.nativeElement.autoClose:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoClose=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoCloseDelay",{get:function(){return this.nativeElement?this.nativeElement.autoCloseDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoCloseDelay=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoOpen",{get:function(){return this.nativeElement?this.nativeElement.autoOpen:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoOpen=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"disabled",{get:function(){return this.nativeElement?this.nativeElement.disabled:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"iconClass",{get:function(){return this.nativeElement?this.nativeElement.iconClass:void 0},set:function(e){this.nativeElement&&(this.nativeElement.iconClass=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"itemClass",{get:function(){return this.nativeElement?this.nativeElement.itemClass:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemClass=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"itemTemplate",{get:function(){return this.nativeElement?this.nativeElement.itemTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemTemplate=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modal",{get:function(){return this.nativeElement?this.nativeElement.modal:void 0},set:function(e){this.nativeElement&&(this.nativeElement.modal=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){return this.nativeElement?this.nativeElement.position:void 0},set:function(e){this.nativeElement&&(this.nativeElement.position=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"readonly",{get:function(){return this.nativeElement?this.nativeElement.readonly:void 0},set:function(e){this.nativeElement&&(this.nativeElement.readonly=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showCloseButton",{get:function(){return this.nativeElement?this.nativeElement.showCloseButton:void 0},set:function(e){this.nativeElement&&(this.nativeElement.showCloseButton=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.nativeElement?this.nativeElement.type:void 0},set:function(e){this.nativeElement&&(this.nativeElement.type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unfocusable",{get:function(){return this.nativeElement?this.nativeElement.unfocusable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.unfocusable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this.nativeElement?this.nativeElement.value:void 0},set:function(e){this.nativeElement&&(this.nativeElement.value=e)},enumerable:!1,configurable:!0}),r.prototype.closeAll=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.closeAll():this.nativeElement.whenRendered((function(){e.nativeElement.closeAll()}))},r.prototype.closeItem=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.closeItem(e):this.nativeElement.whenRendered((function(){t.nativeElement.closeItem(e)}))},r.prototype.closeLast=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.closeLast():this.nativeElement.whenRendered((function(){e.nativeElement.closeLast()}))},r.prototype.open=function(e,t){return i(this,void 0,void 0,(function(){var n=this;return o(this,(function(i){switch(i.label){case 0:return[4,function(){return new Promise((function(i){n.nativeElement.whenRendered((function(){var o=n.nativeElement.open(e,t);i(o)}))}))}()];case 1:return[2,i.sent()]}}))}))},Object.defineProperty(r.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!1,configurable:!0}),r.prototype.ngOnInit=function(){},r.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),a.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},r.prototype.ngOnDestroy=function(){this.unlisten()},r.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},r.prototype.listen=function(){var e=this;e.eventHandlers.clickHandler=function(t){e.onClick.emit(t)},e.nativeElement.addEventListener("click",e.eventHandlers.clickHandler),e.eventHandlers.closeHandler=function(t){e.onClose.emit(t)},e.nativeElement.addEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.openHandler=function(t){e.onOpen.emit(t)},e.nativeElement.addEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.swipebottomHandler=function(t){e.onSwipebottom.emit(t)},e.nativeElement.addEventListener("swipebottom",e.eventHandlers.swipebottomHandler),e.eventHandlers.swipeleftHandler=function(t){e.onSwipeleft.emit(t)},e.nativeElement.addEventListener("swipeleft",e.eventHandlers.swipeleftHandler),e.eventHandlers.swiperightHandler=function(t){e.onSwiperight.emit(t)},e.nativeElement.addEventListener("swiperight",e.eventHandlers.swiperightHandler),e.eventHandlers.swipetopHandler=function(t){e.onSwipetop.emit(t)},e.nativeElement.addEventListener("swipetop",e.eventHandlers.swipetopHandler)},r.prototype.unlisten=function(){var e=this;e.eventHandlers.clickHandler&&e.nativeElement.removeEventListener("click",e.eventHandlers.clickHandler),e.eventHandlers.closeHandler&&e.nativeElement.removeEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.openHandler&&e.nativeElement.removeEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.swipebottomHandler&&e.nativeElement.removeEventListener("swipebottom",e.eventHandlers.swipebottomHandler),e.eventHandlers.swipeleftHandler&&e.nativeElement.removeEventListener("swipeleft",e.eventHandlers.swipeleftHandler),e.eventHandlers.swiperightHandler&&e.nativeElement.removeEventListener("swiperight",e.eventHandlers.swiperightHandler),e.eventHandlers.swipetopHandler&&e.nativeElement.removeEventListener("swipetop",e.eventHandlers.swipetopHandler)},r}(r);l.decorators=[{type:t.Directive,args:[{selector:"smart-toast, [smart-toast]"}]}],l.ctorParameters=function(){return[{type:t.ElementRef}]},l.propDecorators={animation:[{type:t.Input}],appendTo:[{type:t.Input}],autoClose:[{type:t.Input}],autoCloseDelay:[{type:t.Input}],autoOpen:[{type:t.Input}],disabled:[{type:t.Input}],iconClass:[{type:t.Input}],itemClass:[{type:t.Input}],itemTemplate:[{type:t.Input}],locale:[{type:t.Input}],localizeFormatFunction:[{type:t.Input}],messages:[{type:t.Input}],modal:[{type:t.Input}],position:[{type:t.Input}],readonly:[{type:t.Input}],rightToLeft:[{type:t.Input}],showCloseButton:[{type:t.Input}],theme:[{type:t.Input}],type:[{type:t.Input}],unfocusable:[{type:t.Input}],value:[{type:t.Input}],onClick:[{type:t.Output}],onClose:[{type:t.Output}],onOpen:[{type:t.Output}],onSwipebottom:[{type:t.Output}],onSwipeleft:[{type:t.Output}],onSwiperight:[{type:t.Output}],onSwipetop:[{type:t.Output}]};var s=function(){};s.decorators=[{type:t.NgModule,args:[{declarations:[l],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[l]}]}],e.Smart=a,e.ToastComponent=l,e.ToastModule=s,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})}));
24
+ ***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function l(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((i=i.apply(e,t||[])).next())}))}function o(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}}Object.create;Object.create;var r=function(){function e(e){this.onCreate=new t.EventEmitter,this.onReady=new t.EventEmitter,this.onAttach=new t.EventEmitter,this.onDetach=new t.EventEmitter;var n=this;this.nativeElement=e.nativeElement,n.nativeElement.onAttached=function(){n.onAttach.emit(n.nativeElement)},n.nativeElement.onDetached=function(){n.onDetach.emit(n.nativeElement)}}return e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.addEventListener(e,t,n)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.removeEventListener(e,t,n)},e.prototype.dispatchEvent=function(e){return this.nativeElement.dispatchEvent(e)},e.prototype.blur=function(){this.nativeElement.blur()},e.prototype.click=function(){this.nativeElement.click()},e.prototype.focus=function(e){this.nativeElement.focus(e)},Object.defineProperty(e.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!1,configurable:!0}),e}();r.propDecorators={onCreate:[{type:t.Output}],onReady:[{type:t.Output}],onAttach:[{type:t.Output}],onDetach:[{type:t.Output}],locale:[{type:t.Input}],localizeFormatFunction:[{type:t.Input}],messages:[{type:t.Input}],rightToLeft:[{type:t.Input}],theme:[{type:t.Input}]};var a=window.Smart,l=function(e){function r(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onItemClick=new t.EventEmitter,i.onClose=new t.EventEmitter,i.onOpen=new t.EventEmitter,i.onSwipebottom=new t.EventEmitter,i.onSwipeleft=new t.EventEmitter,i.onSwiperight=new t.EventEmitter,i.onSwipetop=new t.EventEmitter,i.nativeElement=n.nativeElement,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(r,e),r.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-toast"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(r.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"appendTo",{get:function(){return this.nativeElement?this.nativeElement.appendTo:void 0},set:function(e){this.nativeElement&&(this.nativeElement.appendTo=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoClose",{get:function(){return this.nativeElement?this.nativeElement.autoClose:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoClose=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoCloseDelay",{get:function(){return this.nativeElement?this.nativeElement.autoCloseDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoCloseDelay=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoOpen",{get:function(){return this.nativeElement?this.nativeElement.autoOpen:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoOpen=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"disabled",{get:function(){return this.nativeElement?this.nativeElement.disabled:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"iconClass",{get:function(){return this.nativeElement?this.nativeElement.iconClass:void 0},set:function(e){this.nativeElement&&(this.nativeElement.iconClass=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"itemClass",{get:function(){return this.nativeElement?this.nativeElement.itemClass:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemClass=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"itemTemplate",{get:function(){return this.nativeElement?this.nativeElement.itemTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemTemplate=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modal",{get:function(){return this.nativeElement?this.nativeElement.modal:void 0},set:function(e){this.nativeElement&&(this.nativeElement.modal=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){return this.nativeElement?this.nativeElement.position:void 0},set:function(e){this.nativeElement&&(this.nativeElement.position=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"readonly",{get:function(){return this.nativeElement?this.nativeElement.readonly:void 0},set:function(e){this.nativeElement&&(this.nativeElement.readonly=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showCloseButton",{get:function(){return this.nativeElement?this.nativeElement.showCloseButton:void 0},set:function(e){this.nativeElement&&(this.nativeElement.showCloseButton=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.nativeElement?this.nativeElement.type:void 0},set:function(e){this.nativeElement&&(this.nativeElement.type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unfocusable",{get:function(){return this.nativeElement?this.nativeElement.unfocusable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.unfocusable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this.nativeElement?this.nativeElement.value:void 0},set:function(e){this.nativeElement&&(this.nativeElement.value=e)},enumerable:!1,configurable:!0}),r.prototype.closeAll=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.closeAll():this.nativeElement.whenRendered((function(){e.nativeElement.closeAll()}))},r.prototype.closeItem=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.closeItem(e):this.nativeElement.whenRendered((function(){t.nativeElement.closeItem(e)}))},r.prototype.closeLast=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.closeLast():this.nativeElement.whenRendered((function(){e.nativeElement.closeLast()}))},r.prototype.open=function(e,t){return i(this,void 0,void 0,(function(){var n=this;return o(this,(function(i){switch(i.label){case 0:return[4,function(){return new Promise((function(i){n.nativeElement.whenRendered((function(){var o=n.nativeElement.open(e,t);i(o)}))}))}()];case 1:return[2,i.sent()]}}))}))},Object.defineProperty(r.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!1,configurable:!0}),r.prototype.ngOnInit=function(){},r.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),a.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},r.prototype.ngOnDestroy=function(){this.unlisten()},r.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},r.prototype.listen=function(){var e=this;e.eventHandlers.itemClickHandler=function(t){e.onItemClick.emit(t)},e.nativeElement.addEventListener("itemClick",e.eventHandlers.itemClickHandler),e.eventHandlers.closeHandler=function(t){e.onClose.emit(t)},e.nativeElement.addEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.openHandler=function(t){e.onOpen.emit(t)},e.nativeElement.addEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.swipebottomHandler=function(t){e.onSwipebottom.emit(t)},e.nativeElement.addEventListener("swipebottom",e.eventHandlers.swipebottomHandler),e.eventHandlers.swipeleftHandler=function(t){e.onSwipeleft.emit(t)},e.nativeElement.addEventListener("swipeleft",e.eventHandlers.swipeleftHandler),e.eventHandlers.swiperightHandler=function(t){e.onSwiperight.emit(t)},e.nativeElement.addEventListener("swiperight",e.eventHandlers.swiperightHandler),e.eventHandlers.swipetopHandler=function(t){e.onSwipetop.emit(t)},e.nativeElement.addEventListener("swipetop",e.eventHandlers.swipetopHandler)},r.prototype.unlisten=function(){var e=this;e.eventHandlers.itemClickHandler&&e.nativeElement.removeEventListener("itemClick",e.eventHandlers.itemClickHandler),e.eventHandlers.closeHandler&&e.nativeElement.removeEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.openHandler&&e.nativeElement.removeEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.swipebottomHandler&&e.nativeElement.removeEventListener("swipebottom",e.eventHandlers.swipebottomHandler),e.eventHandlers.swipeleftHandler&&e.nativeElement.removeEventListener("swipeleft",e.eventHandlers.swipeleftHandler),e.eventHandlers.swiperightHandler&&e.nativeElement.removeEventListener("swiperight",e.eventHandlers.swiperightHandler),e.eventHandlers.swipetopHandler&&e.nativeElement.removeEventListener("swipetop",e.eventHandlers.swipetopHandler)},r}(r);l.decorators=[{type:t.Directive,args:[{selector:"smart-toast, [smart-toast]"}]}],l.ctorParameters=function(){return[{type:t.ElementRef}]},l.propDecorators={animation:[{type:t.Input}],appendTo:[{type:t.Input}],autoClose:[{type:t.Input}],autoCloseDelay:[{type:t.Input}],autoOpen:[{type:t.Input}],disabled:[{type:t.Input}],iconClass:[{type:t.Input}],itemClass:[{type:t.Input}],itemTemplate:[{type:t.Input}],locale:[{type:t.Input}],localizeFormatFunction:[{type:t.Input}],messages:[{type:t.Input}],modal:[{type:t.Input}],position:[{type:t.Input}],readonly:[{type:t.Input}],rightToLeft:[{type:t.Input}],showCloseButton:[{type:t.Input}],theme:[{type:t.Input}],type:[{type:t.Input}],unfocusable:[{type:t.Input}],value:[{type:t.Input}],onItemClick:[{type:t.Output}],onClose:[{type:t.Output}],onOpen:[{type:t.Output}],onSwipebottom:[{type:t.Output}],onSwipeleft:[{type:t.Output}],onSwiperight:[{type:t.Output}],onSwipetop:[{type:t.Output}]};var s=function(){};s.decorators=[{type:t.NgModule,args:[{declarations:[l],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[l]}]}],e.Smart=a,e.ToastComponent=l,e.ToastModule=s,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})}));
25
25
  //# sourceMappingURL=smart-webcomponents-angular-toast.umd.min.js.map