-
Notifications
You must be signed in to change notification settings - Fork 8
/
ng2-izitoast.es5.js.map
1 lines (1 loc) · 5.84 KB
/
ng2-izitoast.es5.js.map
1
{"version":3,"file":"ng2-izitoast.es5.js","sources":["../out-tsc/lib/src/service/ng2-izitoast.service.ts","../out-tsc/lib/src/module.ts","../out-tsc/lib/index.ts","../out-tsc/lib/ng2-izitoast.ts"],"sourcesContent":["import { Injectable, ElementRef } from '@angular/core';\nimport { Ng2IzitoastModel } from \"../model/ng2-izitoast.model\";\n\ndeclare var iziToast: any;\n\n@Injectable()\nexport class Ng2IzitoastService {\n\n private toastConfigQuestion: Object;\n\n constructor() {\n this.toastConfigQuestion = {\n timeout: 20000,\n close: false,\n overlay: true,\n toastOnce: true,\n id: 'question',\n zindex: 999,\n title: 'Hey',\n message: 'Are you sure about that?',\n position: 'center',\n buttons: [\n ['<button><b>YES</b></button>', function (instance: any, toast: any) {\n \n instance.hide(toast, { transitionOut: 'fadeOut' }, 'button');\n \n }, true],\n ['<button>NO</button>', function (instance: any, toast: any) {\n \n instance.hide(toast, { transitionOut: 'fadeOut' }, 'button');\n \n }]\n ],\n onClosing: function(instance: any, toast: any, closedBy: any){\n console.info('Closing | closedBy: ' + closedBy);\n },\n onClosed: function(instance: any, toast: any, closedBy: any){\n console.info('Closed | closedBy: ' + closedBy);\n }\n }\n }\n\n show(data: Ng2IzitoastModel) {\n iziToast.show(data);\n return data;\n }\n \n info(data: Ng2IzitoastModel) {\n iziToast.info(data);\n return data;\n }\n\n success(data: Ng2IzitoastModel) {\n iziToast.success(data);\n return data;\n }\n\n warning(data: Ng2IzitoastModel) {\n iziToast.warning(data);\n return data;\n }\n\n error(data: Ng2IzitoastModel) {\n iziToast.error(data);\n return data;\n }\n\n question(data: Ng2IzitoastModel) {\n let iziToastConfig = Object.assign({}, this.toastConfigQuestion, data);\n iziToast.question(iziToastConfig);\n return iziToastConfig;\n }\n\n progress(iziToastClass: string) {\n let toast = document.querySelector(iziToastClass);\n\n return {\n reset: () => {\n setTimeout(() => {\n iziToast.progress(toast).reset();\n }, 100);\n },\n pause: () => {\n setTimeout(() => {\n iziToast.progress(toast).pause();\n }, 100);\n },\n resume: () => {\n setTimeout(() => {\n iziToast.progress(toast).resume();\n }, 100);\n },\n start: () => {\n setTimeout(() => {\n iziToast.progress(toast).start();\n }, 100);\n }\n }\n }\n\n hide(iziToastClass: string, options: Ng2IzitoastModel = null) {\n let toast = document.querySelector(iziToastClass);\n iziToast.hide(toast, options);\n }\n\n destroy() {\n iziToast.destroy();\n }\n\n settings(data: Ng2IzitoastModel) {\n iziToast.settings(data);\n return data;\n }\n\n}\n","import { NgModule } from '@angular/core';\r\n\r\nimport { Ng2IzitoastService } from './service/ng2-izitoast.service';\r\n\r\n@NgModule({\r\n providers: [Ng2IzitoastService]\r\n})\r\nexport class Ng2IziToastModule { }\r\n","export { Ng2IzitoastService } from './src/service/ng2-izitoast.service';\r\nexport { Ng2IziToastModule } from './src/module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;IAUE;QACE,IAAI,CAAC,mBAAmB,GAAG;YACzB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,IAAI;YACf,EAAE,EAAE,UAAU;YACd,MAAM,EAAE,GAAG;YACX,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,0BAA0B;YACnC,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE;gBACL,CAAC,6BAA6B,EAAE,UAAU,QAAa,EAAE,KAAU;wBAE/D,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC;qBAEhE,EAAE,IAAI,CAAC;gBACR,CAAC,qBAAqB,EAAE,UAAU,QAAa,EAAE,KAAU;wBAEvD,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,aAAa,EAAE,SAAS,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