LibAcc: 0.9268=38/41, ProjAcc: 1.0000=0/0, Missing: 165
Module: src/interfaces/notification.type
type π[ty]1{Notification} = {clickIcon: π[ty]2{<UNKNOWN>}, createdOn: π[ty]8635{Date}, theClass: π[ty]10051{String}, destroyedOn: π[ty]8635{Date}, state: π[ty]10051{String}, icon: π[ty]10051{String}, override: any, timeOut: π[ty]8655{Number}, timeoutEnd: π[ty]2{<UNKNOWN>}, id: π[ty]10051{String}, clickIconToClose: π[ty]8666{Boolean}, click: π[ty]2{<UNKNOWN>}, clickToClose: π[ty]8666{Boolean}, content: any, pauseOnHover: π[ty]8666{Boolean}, title: any, type: π[ty]10051{String}, html: any, animate: π[ty]10051{String}, maxLength: π[ty]8655{Number}}
Module: playground/index
function π2{CONSTRUCTOR} (π3{service}: [OOV]π[ty]2{<UNKNOWN>}): (π[ty]7{AppComponent})
{
const π[ty]7{AppComponent};
const π[ty]7{AppComponent};
π[ty]7{AppComponent}.service β΅ π3{service};
}
class π[ty]7{AppComponent}{
π9{service}: [OOV]π[ty]2{<UNKNOWN>};
function π10{open} (): (π11: [miss]π[ty]10033{Void})
{
π[ty]7{AppComponent}.service.create(π8743{String},π8743{String})
}
}
π1{<UNKNOWN>}(π8743{String},π12643{undefined})
function π12{CONSTRUCTOR} (): (π[ty]16{AppModule})
{
const π[ty]16{AppModule};
const π[ty]16{AppModule};
}
class π[ty]16{AppModule}{
}
π345{platformBrowserDynamic}().bootstrapModule(π12643{undefined})
Module: src/components/simple-notifications/simple-notifications.component
function π18{CONSTRUCTOR} (π19{service}: [OOV]π[ty]288{NotificationsService},π20{cdr}: [OOV]π[ty]2{<UNKNOWN>}): (π[ty]24{SimpleNotificationsComponent})
{
const π[ty]24{SimpleNotificationsComponent};
const π[ty]24{SimpleNotificationsComponent};
π[ty]24{SimpleNotificationsComponent}.clickIconToClose β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.lastOnBottom β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.preventDuplicates β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.clickToClose β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.position β΅ π8757{Array}(π8743{String},π8743{String});
π[ty]24{SimpleNotificationsComponent}.pauseOnHover β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.maxStack β΅ π8745{Number};
π[ty]24{SimpleNotificationsComponent}.animate β΅ π8743{String};
π[ty]24{SimpleNotificationsComponent}.theClass β΅ π8743{String};
π[ty]24{SimpleNotificationsComponent}.maxLength β΅ π8745{Number};
π[ty]24{SimpleNotificationsComponent}.rtl β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.timeOut β΅ π8745{Number};
π[ty]24{SimpleNotificationsComponent}.preventLastDuplicates β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.showProgressBar β΅ π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.onDestroy β΅ π341{EventEmitter}.CONSTRUCTOR();
π[ty]24{SimpleNotificationsComponent}.notifications β΅ π8757{Array}();
π[ty]24{SimpleNotificationsComponent}.onCreate β΅ π341{EventEmitter}.CONSTRUCTOR();
}
class π[ty]24{SimpleNotificationsComponent} extends π[ty]2{<UNKNOWN>}{
π26{theClass}: [miss]π[ty]10051{String};
π27{preventLastDuplicates}: [OOV]any;
π28{listener}: [OOV]π[ty]2{<UNKNOWN>};
π29{maxStack}: [miss]π[ty]8655{Number};
π30{preventDuplicates}: [miss]π[ty]8666{Boolean};
π31{rtl}: [miss]π[ty]8666{Boolean};
π32{timeOut}: [miss]π[ty]8655{Number};
π33{onCreate};
π34{clickIconToClose}: [miss]π[ty]8666{Boolean};
π35{onDestroy};
π36{clickToClose}: [miss]π[ty]8666{Boolean};
π37{position}: π[ty]8670{Array};
π38{pauseOnHover}: [miss]π[ty]8666{Boolean};
π39{lastNotificationCreated}: [OOV]π[ty]1{Notification};
π40{notifications}: π[ty]8670{Array};
π41{animate}: [OOV]any;
π42{showProgressBar}: [miss]π[ty]8666{Boolean};
π43{maxLength}: [miss]π[ty]8655{Number};
π44{lastOnBottom}: [miss]π[ty]8666{Boolean};
function π85{cleanSingle} (π86{id}: π[ty]10051{String}): (π87: π[ty]10033{Void})
{
let π88{indexOfDelete}: [miss]π[ty]8655{Number} = π8745{Number};
let π89{doDelete}: [miss]π[ty]8666{Boolean} = π8744{Boolean};
let π90{noti};
function π91{$Lambda35} (π92{notification},π93{idx}): (π94: [miss]π[ty]10033{Void})
{
if (π12559{EqualsEqualsEqualsToken}(π92{notification}.id,π86{id}))
{
π88{indexOfDelete} β΅ π93{idx};
π90{noti} β΅ π92{notification};
π89{doDelete} β΅ π8744{Boolean};
}
}
π[ty]24{SimpleNotificationsComponent}.notifications.forEach(π91{$Lambda35})
if (π89{doDelete})
{
π[ty]24{SimpleNotificationsComponent}.notifications.splice(π88{indexOfDelete},π8745{Number})
π[ty]24{SimpleNotificationsComponent}.onDestroy.emit(π[ty]24{SimpleNotificationsComponent}.buildEmit(π90{noti},π8744{Boolean}))
}
}
function π80{buildEmit} (π81{notification}: [OOV]π[ty]1{Notification},π82{to}: π[ty]8666{Boolean}): (π83: [OOV]π[ty]1{Notification})
{
let π84{toEmit}: [OOV]π[ty]1{Notification} = {createdOn: π81{notification}.createdOn,type: π81{notification}.type,icon: π81{notification}.icon,id: π81{notification}.id};
if (π81{notification}.html)
{
π84{toEmit}.html β΅ π81{notification}.html;
}
else
{
π84{toEmit}.title β΅ π81{notification}.title;
π84{toEmit}.content β΅ π81{notification}.content;
}
if (π12569{ExclamationToken}(π82{to}))
{
π84{toEmit}.destroyedOn β΅ π8747{Date}.CONSTRUCTOR();
}
return π83 = π84{toEmit}
}
function π53{defaultBehavior} (π54{value}: [OOV]any): (π55: π[ty]10033{Void})
{
π[ty]24{SimpleNotificationsComponent}.notifications.splice(π[ty]24{SimpleNotificationsComponent}.notifications.indexOf(π54{value}.notification),π8745{Number})
π[ty]24{SimpleNotificationsComponent}.onDestroy.emit(π[ty]24{SimpleNotificationsComponent}.buildEmit(π54{value}.notification,π8744{Boolean}))
}
function π66{checkStandard} (π67{checker}: [OOV]π[ty]1{Notification},π68{item}: [OOV]π[ty]1{Notification}): (π69: π[ty]8666{Boolean})
{
return π69 = π12592{AmpersandAmpersandToken}(π12592{AmpersandAmpersandToken}(π12559{EqualsEqualsEqualsToken}(π67{checker}.type,π68{item}.type),π12559{EqualsEqualsEqualsToken}(π67{checker}.title,π68{item}.title)),π12559{EqualsEqualsEqualsToken}(π67{checker}.content,π68{item}.content))
}
function π45{options} (π46{opt}: [OOV]π[ty]283{Options}): (π47)
{
π[ty]24{SimpleNotificationsComponent}.attachChanges(π46{opt})
}
function π60{block} (π61{item}: [OOV]π[ty]1{Notification}): (π62: π[ty]8666{Boolean})
{
const π63{toCheck}: [miss]π[ty]8696{Function} = (π61{item}.html ? π[ty]24{SimpleNotificationsComponent}.checkHtml : π[ty]24{SimpleNotificationsComponent}.checkStandard;
if (π12592{AmpersandAmpersandToken}(π[ty]24{SimpleNotificationsComponent}.preventDuplicates,π12595{GreaterThanToken}(π[ty]24{SimpleNotificationsComponent}.notifications.length,π8745{Number})))
{
{
let π64{i}: [miss]π[ty]8655{Number} = π8745{Number};
while (π1{<UNKNOWN>}(π64{i},π[ty]24{SimpleNotificationsComponent}.notifications.length))
{
{
if (π63{toCheck}(π[ty]24{SimpleNotificationsComponent}.notifications.access(π64{i}),π61{item}))
{
return π62 = π8744{Boolean}
}
}
π12556{POST_PlusPlusToken}(π64{i})
}
}
}
if (π[ty]24{SimpleNotificationsComponent}.preventLastDuplicates)
{
let π65{comp}: [OOV]π[ty]1{Notification};
if (π12592{AmpersandAmpersandToken}(π12559{EqualsEqualsEqualsToken}(π[ty]24{SimpleNotificationsComponent}.preventLastDuplicates,π8743{String}),π12595{GreaterThanToken}(π[ty]24{SimpleNotificationsComponent}.notifications.length,π8745{Number})))
{
if (π[ty]24{SimpleNotificationsComponent}.lastOnBottom)
{
π65{comp} β΅ π[ty]24{SimpleNotificationsComponent}.notifications.access(π12616{MinusToken}(π[ty]24{SimpleNotificationsComponent}.notifications.length,π8745{Number}));
}
else
{
π65{comp} β΅ π[ty]24{SimpleNotificationsComponent}.notifications.access(π8745{Number});
}
}
else
{
if (π12592{AmpersandAmpersandToken}(π12559{EqualsEqualsEqualsToken}(π[ty]24{SimpleNotificationsComponent}.preventLastDuplicates,π8743{String}),π[ty]24{SimpleNotificationsComponent}.lastNotificationCreated))
{
π65{comp} β΅ π[ty]24{SimpleNotificationsComponent}.lastNotificationCreated;
}
else
{
return π62 = π8744{Boolean}
}
}
return π62 = π63{toCheck}(π65{comp},π61{item})
}
return π62 = π8744{Boolean}
}
function π74{attachChanges} (π75{options}: [OOV]any): (π76: π[ty]10033{Void})
{
function π77{$Lambda34} (π78{a}): (π79: [miss]π[ty]10033{Void})
{
if (π[ty]24{SimpleNotificationsComponent}.hasOwnProperty(π78{a}))
{
π[ty]24{SimpleNotificationsComponent} as any.access(π78{a}) β΅ π75{options}.access(π78{a});
}
else
{
if (π12559{EqualsEqualsEqualsToken}(π78{a},π8743{String}))
{
π[ty]24{SimpleNotificationsComponent}.service.icons β΅ π75{options}.access(π78{a});
}
}
}
π8741{Object}.keys(π75{options}).forEach(π77{$Lambda34})
}
function π48{ngOnInit} (): (π49: π[ty]10033{Void})
{
function π50{$Lambda33} (π51{item}): (π52: [miss]π[ty]10033{Void})
{
π12577{$Switch}(π51{item}.command)
π12634{$Case}(π8743{String})
π[ty]24{SimpleNotificationsComponent}.notifications β΅ π8757{Array}();
π12634{$Case}(π8743{String})
π[ty]24{SimpleNotificationsComponent}.cleanSingle(π51{item}.id)
π12634{$Case}(π8743{String})
if (π51{item}.add)
{
π[ty]24{SimpleNotificationsComponent}.add(π51{item}.notification)
}
else
{
π[ty]24{SimpleNotificationsComponent}.defaultBehavior(π51{item})
}
π[ty]24{SimpleNotificationsComponent}.defaultBehavior(π51{item})
π[ty]24{SimpleNotificationsComponent}.cdr.markForCheck()
}
π[ty]24{SimpleNotificationsComponent}.listener β΅ π[ty]24{SimpleNotificationsComponent}.service.emitter.subscribe(π50{$Lambda33});
}
function π95{ngOnDestroy} (): (π96: π[ty]10033{Void})
{
if (π[ty]24{SimpleNotificationsComponent}.listener)
{
π[ty]24{SimpleNotificationsComponent}.listener.unsubscribe()
}
}
function π56{add} (π57{item}: [OOV]π[ty]1{Notification}): (π58: π[ty]10033{Void})
{
π57{item}.createdOn β΅ π8747{Date}.CONSTRUCTOR();
let π59{toBlock}: π[ty]8666{Boolean} = (π12546{BarBarToken}(π[ty]24{SimpleNotificationsComponent}.preventLastDuplicates,π[ty]24{SimpleNotificationsComponent}.preventDuplicates) ? π[ty]24{SimpleNotificationsComponent}.block(π57{item}) : π8744{Boolean};
π[ty]24{SimpleNotificationsComponent}.lastNotificationCreated β΅ π57{item};
if (π12592{AmpersandAmpersandToken}(π12592{AmpersandAmpersandToken}(π57{item}.override,π57{item}.override.icons),π57{item}.override.icons.access(π57{item}.type)))
{
π57{item}.icon β΅ π57{item}.override.icons.access(π57{item}.type);
}
if (π12569{ExclamationToken}(π59{toBlock}))
{
if (π[ty]24{SimpleNotificationsComponent}.lastOnBottom)
{
if (π12596{GreaterThanEqualsToken}(π[ty]24{SimpleNotificationsComponent}.notifications.length,π[ty]24{SimpleNotificationsComponent}.maxStack))
{
π[ty]24{SimpleNotificationsComponent}.notifications.splice(π8745{Number},π8745{Number})
}
π[ty]24{SimpleNotificationsComponent}.notifications.push(π57{item})
}
else
{
if (π12596{GreaterThanEqualsToken}(π[ty]24{SimpleNotificationsComponent}.notifications.length,π[ty]24{SimpleNotificationsComponent}.maxStack))
{
π[ty]24{SimpleNotificationsComponent}.notifications.splice(π12616{MinusToken}(π[ty]24{SimpleNotificationsComponent}.notifications.length,π8745{Number}),π8745{Number})
}
π[ty]24{SimpleNotificationsComponent}.notifications.splice(π8745{Number},π8745{Number},π57{item})
}
π[ty]24{SimpleNotificationsComponent}.onCreate.emit(π[ty]24{SimpleNotificationsComponent}.buildEmit(π57{item},π8744{Boolean}))
}
}
function π70{checkHtml} (π71{checker}: [OOV]π[ty]1{Notification},π72{item}: [OOV]π[ty]1{Notification}): (π73: π[ty]8666{Boolean})
{
return π73 = (π71{checker}.html ? π12592{AmpersandAmpersandToken}(π12592{AmpersandAmpersandToken}(π12592{AmpersandAmpersandToken}(π12559{EqualsEqualsEqualsToken}(π71{checker}.type,π72{item}.type),π12559{EqualsEqualsEqualsToken}(π71{checker}.title,π72{item}.title)),π12559{EqualsEqualsEqualsToken}(π71{checker}.content,π72{item}.content)),π12559{EqualsEqualsEqualsToken}(π71{checker}.html,π72{item}.html)) : π8744{Boolean}
}
}
Module: src/interfaces/notification-event.type
type π[ty]97{NotificationEvent} = {add: π[ty]8666{Boolean}, command: π[ty]10051{String}, id: π[ty]10051{String}, notification: π[ty]1{Notification}}
Module: src/index
function π98{CONSTRUCTOR} (): (π[ty]104{SimpleNotificationsModule})
{
const π[ty]104{SimpleNotificationsModule};
const π[ty]104{SimpleNotificationsModule};
}
function π102{forRoot} (): (π103: [OOV]π[ty]2{<UNKNOWN>})
{
return π103 = {ngModule: π12643{undefined},providers: π8757{Array}(π12643{undefined})}
}
class π[ty]104{SimpleNotificationsModule}{
}
Module: src/services/notifications.service.spec
function π106{$Lambda0} (): (π107: [miss]π[ty]10033{Void})
{
function π108{$Lambda1} (): (π109: [miss]π[ty]10033{Void})
{
π358{TestBed}.configureTestingModule({declarations: π8757{Array}(),providers: π8757{Array}(π12643{undefined})})
}
π1{<UNKNOWN>}(π108{$Lambda1})
let π110{defaultNotification}: [miss]π[ty]8642{Object} = {createdOn: π8747{Date}.CONSTRUCTOR(),theClass: π8743{String},destroyedOn: π8747{Date}.CONSTRUCTOR(),icon: π282{defaultIcons}.success,rtl: π8744{Boolean},timeOut: π8745{Number},id: π8743{String},clickIconToClose: π8744{Boolean},clickToClose: π8744{Boolean},content: π8743{String},pauseOnHover: π8744{Boolean},title: π8743{String},type: π8743{String},animate: π8743{String},showProgressBar: π8744{Boolean},maxLength: π8745{Number}};
function π111{$Lambda2} (π112{service}: [OOV]π[ty]288{NotificationsService}): (π113: [miss]π[ty]10033{Void})
{
π10036{expect}(π1{<UNKNOWN>}(π112{service},π12643{undefined})).toBeTruthy()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π111{$Lambda2}))
function π114{$Lambda3} (π115{service}: [OOV]π[ty]288{NotificationsService}): (π116: [miss]π[ty]10033{Void})
{
let π117{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π118{$Lambda4} (π119{item}): (π120: [OOV]any)
{
return π120 = π1{<UNKNOWN>}(π117{notificationEvent},π119{item})
}
π115{service}.emitter.subscribe(π118{$Lambda4})
π115{service}.set(π110{defaultNotification},π8744{Boolean})
π10036{expect}(π117{notificationEvent}.command).toBe(π8743{String})
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π117{notificationEvent}.notification.id,π8743{String})).toBeTruthy()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π114{$Lambda3}))
function π121{$Lambda5} (π122{service}: [OOV]π[ty]288{NotificationsService}): (π123: [miss]π[ty]10033{Void})
{
let π124{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
let π125{override}: [miss]π[ty]8642{Object} = {id: π8743{String}};
function π126{$Lambda6} (π127{item}): (π128: [OOV]any)
{
return π128 = π1{<UNKNOWN>}(π124{notificationEvent},π127{item})
}
π122{service}.emitter.subscribe(π126{$Lambda6})
π122{service}.set(π8741{Object}.assign(π110{defaultNotification},{override: π125{override}}),π8744{Boolean})
π10036{expect}(π124{notificationEvent}.notification.id).toBe(π8743{String})
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π121{$Lambda5}))
function π129{$Lambda7} (π130{service}: [OOV]π[ty]288{NotificationsService}): (π131: [miss]π[ty]10033{Void})
{
let π132{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π133{$Lambda8} (π134{item}): (π135: [OOV]any)
{
return π135 = π1{<UNKNOWN>}(π132{notificationEvent},π134{item})
}
π130{service}.emitter.subscribe(π133{$Lambda8})
let π136{notification}: [OOV]π[ty]1{Notification} = π130{service}.success(π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π136{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π136{notification}.type).toBe(π8743{String})
π10036{expect}(π136{notification}.icon).toBe(π282{defaultIcons}.success)
π10036{expect}(π136{notification}.title).toBe(π8743{String})
π10036{expect}(π136{notification}.content).toBe(π8743{String})
π10036{expect}(π136{notification}.override).toBeUndefined()
π10036{expect}(π136{notification}.html).toBeUndefined()
π10036{expect}(π136{notification}.state).toBeUndefined()
π10036{expect}(π136{notification}.createdOn).toBeUndefined()
π10036{expect}(π136{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π129{$Lambda7}))
function π137{$Lambda9} (π138{service}: [OOV]π[ty]288{NotificationsService}): (π139: [miss]π[ty]10033{Void})
{
let π140{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π141{$Lambda10} (π142{item}): (π143: [OOV]any)
{
return π143 = π1{<UNKNOWN>}(π140{notificationEvent},π142{item})
}
π138{service}.emitter.subscribe(π141{$Lambda10})
let π144{notification}: [OOV]π[ty]1{Notification} = π138{service}.error(π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π144{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π144{notification}.type).toBe(π8743{String})
π10036{expect}(π144{notification}.icon).toBe(π282{defaultIcons}.error)
π10036{expect}(π144{notification}.title).toBe(π8743{String})
π10036{expect}(π144{notification}.content).toBe(π8743{String})
π10036{expect}(π144{notification}.override).toBeUndefined()
π10036{expect}(π144{notification}.html).toBeUndefined()
π10036{expect}(π144{notification}.state).toBeUndefined()
π10036{expect}(π144{notification}.createdOn).toBeUndefined()
π10036{expect}(π144{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π137{$Lambda9}))
function π145{$Lambda11} (π146{service}: [OOV]π[ty]288{NotificationsService}): (π147: [miss]π[ty]10033{Void})
{
let π148{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π149{$Lambda12} (π150{item}): (π151: [OOV]any)
{
return π151 = π1{<UNKNOWN>}(π148{notificationEvent},π150{item})
}
π146{service}.emitter.subscribe(π149{$Lambda12})
let π152{notification}: [OOV]π[ty]1{Notification} = π146{service}.alert(π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π152{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π152{notification}.type).toBe(π8743{String})
π10036{expect}(π152{notification}.icon).toBe(π282{defaultIcons}.alert)
π10036{expect}(π152{notification}.title).toBe(π8743{String})
π10036{expect}(π152{notification}.content).toBe(π8743{String})
π10036{expect}(π152{notification}.override).toBeUndefined()
π10036{expect}(π152{notification}.html).toBeUndefined()
π10036{expect}(π152{notification}.state).toBeUndefined()
π10036{expect}(π152{notification}.createdOn).toBeUndefined()
π10036{expect}(π152{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π145{$Lambda11}))
function π153{$Lambda13} (π154{service}: [OOV]π[ty]288{NotificationsService}): (π155: [miss]π[ty]10033{Void})
{
let π156{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π157{$Lambda14} (π158{item}): (π159: [OOV]any)
{
return π159 = π1{<UNKNOWN>}(π156{notificationEvent},π158{item})
}
π154{service}.emitter.subscribe(π157{$Lambda14})
let π160{notification}: [OOV]π[ty]1{Notification} = π154{service}.info(π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π160{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π160{notification}.type).toBe(π8743{String})
π10036{expect}(π160{notification}.icon).toBe(π282{defaultIcons}.info)
π10036{expect}(π160{notification}.title).toBe(π8743{String})
π10036{expect}(π160{notification}.content).toBe(π8743{String})
π10036{expect}(π160{notification}.override).toBeUndefined()
π10036{expect}(π160{notification}.html).toBeUndefined()
π10036{expect}(π160{notification}.state).toBeUndefined()
π10036{expect}(π160{notification}.createdOn).toBeUndefined()
π10036{expect}(π160{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π153{$Lambda13}))
function π161{$Lambda15} (π162{service}: [OOV]π[ty]288{NotificationsService}): (π163: [miss]π[ty]10033{Void})
{
let π164{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π165{$Lambda16} (π166{item}): (π167: [OOV]any)
{
return π167 = π1{<UNKNOWN>}(π164{notificationEvent},π166{item})
}
π162{service}.emitter.subscribe(π165{$Lambda16})
let π168{notification}: [OOV]π[ty]1{Notification} = π162{service}.warn(π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π168{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π168{notification}.type).toBe(π8743{String})
π10036{expect}(π168{notification}.icon).toBe(π282{defaultIcons}.warn)
π10036{expect}(π168{notification}.title).toBe(π8743{String})
π10036{expect}(π168{notification}.content).toBe(π8743{String})
π10036{expect}(π168{notification}.override).toBeUndefined()
π10036{expect}(π168{notification}.html).toBeUndefined()
π10036{expect}(π168{notification}.state).toBeUndefined()
π10036{expect}(π168{notification}.createdOn).toBeUndefined()
π10036{expect}(π168{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π161{$Lambda15}))
function π169{$Lambda17} (π170{service}: [OOV]π[ty]288{NotificationsService}): (π171: [miss]π[ty]10033{Void})
{
let π172{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π173{$Lambda18} (π174{item}): (π175: [OOV]any)
{
return π175 = π1{<UNKNOWN>}(π172{notificationEvent},π174{item})
}
π170{service}.emitter.subscribe(π173{$Lambda18})
let π176{notification}: [OOV]π[ty]1{Notification} = π170{service}.bare(π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π176{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π176{notification}.type).toBe(π8743{String})
π10036{expect}(π176{notification}.icon).toBe(π8743{String})
π10036{expect}(π176{notification}.title).toBe(π8743{String})
π10036{expect}(π176{notification}.content).toBe(π8743{String})
π10036{expect}(π176{notification}.override).toBeUndefined()
π10036{expect}(π176{notification}.html).toBeUndefined()
π10036{expect}(π176{notification}.state).toBeUndefined()
π10036{expect}(π176{notification}.createdOn).toBeUndefined()
π10036{expect}(π176{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π169{$Lambda17}))
function π177{$Lambda19} (π178{service}: [OOV]π[ty]288{NotificationsService}): (π179: [miss]π[ty]10033{Void})
{
let π180{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π181{$Lambda20} (π182{item}): (π183: [OOV]any)
{
return π183 = π1{<UNKNOWN>}(π180{notificationEvent},π182{item})
}
π178{service}.emitter.subscribe(π181{$Lambda20})
let π184{notification}: [OOV]π[ty]1{Notification} = π178{service}.create(π8743{String},π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π184{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π184{notification}.type).toBe(π8743{String})
π10036{expect}(π184{notification}.title).toBe(π8743{String})
π10036{expect}(π184{notification}.content).toBe(π8743{String})
π10036{expect}(π184{notification}.override).toBeUndefined()
π10036{expect}(π184{notification}.html).toBeUndefined()
π10036{expect}(π184{notification}.state).toBeUndefined()
π10036{expect}(π184{notification}.createdOn).toBeUndefined()
π10036{expect}(π184{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π177{$Lambda19}))
function π185{$Lambda21} (π186{service}: [OOV]π[ty]288{NotificationsService}): (π187: [miss]π[ty]10033{Void})
{
let π188{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π189{$Lambda22} (π190{item}): (π191: [OOV]any)
{
return π191 = π1{<UNKNOWN>}(π188{notificationEvent},π190{item})
}
π186{service}.emitter.subscribe(π189{$Lambda22})
let π192{notification}: [OOV]π[ty]1{Notification} = π186{service}.html(π8743{String},π8743{String});
π10036{expect}(π12612{ExclamationEqualsEqualsToken}(π192{notification}.id,π12643{undefined})).toBeTruthy()
π10036{expect}(π192{notification}.type).toBe(π8743{String})
π10036{expect}(π192{notification}.icon).toBe(π8743{String})
π10036{expect}(π192{notification}.title).toBeUndefined()
π10036{expect}(π192{notification}.content).toBeUndefined()
π10036{expect}(π192{notification}.override).toBeUndefined()
π10036{expect}(π192{notification}.html).toBe(π8743{String})
π10036{expect}(π192{notification}.state).toBeUndefined()
π10036{expect}(π192{notification}.createdOn).toBeUndefined()
π10036{expect}(π192{notification}.destroyedOn).toBeUndefined()
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π185{$Lambda21}))
function π193{$Lambda23} (π194{service}: [OOV]π[ty]288{NotificationsService}): (π195: [miss]π[ty]10033{Void})
{
let π196{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π197{$Lambda24} (π198{item}): (π199: [OOV]any)
{
return π199 = π1{<UNKNOWN>}(π196{notificationEvent},π198{item})
}
π194{service}.emitter.subscribe(π197{$Lambda24})
π194{service}.remove()
π10036{expect}(π196{notificationEvent}.command).toBe(π8743{String})
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π193{$Lambda23}))
function π200{$Lambda25} (π201{service}: [OOV]π[ty]288{NotificationsService}): (π202: [miss]π[ty]10033{Void})
{
let π203{notificationEvent}: [OOV]π[ty]97{NotificationEvent} = π12643{undefined};
function π204{$Lambda26} (π205{item}): (π206: [OOV]any)
{
return π206 = π1{<UNKNOWN>}(π203{notificationEvent},π205{item})
}
π201{service}.emitter.subscribe(π204{$Lambda26})
π201{service}.remove(π8743{String})
π10036{expect}(π203{notificationEvent}.command).toBe(π8743{String})
π10036{expect}(π203{notificationEvent}.id).toBe(π8743{String})
}
π10038{it}(π8743{String},π357{inject}(π8757{Array}(π12643{undefined}),π200{$Lambda25}))
}
π10037{describe}(π8743{String},π106{$Lambda0})
Module: src/components/notification/notification.component
function π207{CONSTRUCTOR} (π208{notificationService}: [OOV]π[ty]288{NotificationsService},π209{domSanitizer}: [OOV]π[ty]2{<UNKNOWN>},π210{cdr}: [OOV]π[ty]2{<UNKNOWN>},π211{zone}: [OOV]π[ty]2{<UNKNOWN>}): (π[ty]219{NotificationComponent})
{
const π[ty]219{NotificationComponent};
const π[ty]219{NotificationComponent};
function π215{$Lambda30} (): (π216: [miss]π[ty]10033{Void})
{
π[ty]219{NotificationComponent}.diff β΅ π12616{MinusToken}(π12616{MinusToken}(π8747{Date}.CONSTRUCTOR().getTime(),π[ty]219{NotificationComponent}.start),π12548{AsteriskToken}(π[ty]219{NotificationComponent}.count,π[ty]219{NotificationComponent}.speed));
if (π12559{EqualsEqualsEqualsToken}(π12556{POST_PlusPlusToken}(π[ty]219{NotificationComponent}.count),π[ty]219{NotificationComponent}.steps))
{
π[ty]219{NotificationComponent}.remove()
π[ty]219{NotificationComponent}.item.timeoutEnd.emit()
}
else
{
if (π12569{ExclamationToken}(π[ty]219{NotificationComponent}.stopTime))
{
if (π[ty]219{NotificationComponent}.showProgressBar)
{
π12564{FirstCompoundAssignment}(π[ty]219{NotificationComponent}.progressWidth,π12573{SlashToken}(π8745{Number},π[ty]219{NotificationComponent}.steps))
}
π[ty]219{NotificationComponent}.timer β΅ π12490{setTimeout}(π[ty]219{NotificationComponent}.instance,π12616{MinusToken}(π[ty]219{NotificationComponent}.speed,π[ty]219{NotificationComponent}.diff));
}
}
function π217{$Lambda31} (): (π218: [OOV]any)
{
return π218 = π[ty]219{NotificationComponent}.cdr.detectChanges()
}
π[ty]219{NotificationComponent}.zone.run(π217{$Lambda31})
}
π[ty]219{NotificationComponent}.count β΅ π8745{Number};
π[ty]219{NotificationComponent}.stopTime β΅ π8744{Boolean};
π[ty]219{NotificationComponent}.titleIsTemplate β΅ π8744{Boolean};
π[ty]219{NotificationComponent}.contentIsTemplate β΅ π8744{Boolean};
π[ty]219{NotificationComponent}.instance β΅ π215{$Lambda30};
π[ty]219{NotificationComponent}.progressWidth β΅ π8745{Number};
π[ty]219{NotificationComponent}.htmlIsTemplate β΅ π8744{Boolean};
}
class π[ty]219{NotificationComponent} extends π[ty]2{<UNKNOWN>}{
π221{safeSvg}: [OOV]π[ty]2{<UNKNOWN>};
π222{count}: [miss]π[ty]8655{Number};
π223{theClass}: π[ty]10051{String};
π224{titleIsTemplate}: [miss]π[ty]8666{Boolean};
π225{icon}: π[ty]10051{String};
π226{contentIsTemplate}: [miss]π[ty]8666{Boolean};
π227{instance}: [miss]π[ty]8696{Function};
π228{rtl}: π[ty]8666{Boolean};
π229{timeOut}: π[ty]8655{Number};
π230{clickIconToClose}: π[ty]8666{Boolean};
π231{diff}: [OOV]any;
π232{clickToClose}: π[ty]8666{Boolean};
π233{content}: [OOV]any;
π234{position}: (π[ty]8670{Array} β π[ty]8655{Number});
π235{pauseOnHover}: π[ty]8666{Boolean};
π236{steps}: π[ty]8655{Number};
π237{title}: [OOV]any;
π238{start}: [OOV]any;
π239{htmlIsTemplate}: [miss]π[ty]8666{Boolean};
π240{progressWidth}: [miss]π[ty]8655{Number};
π241{animate}: π[ty]10051{String};
π242{showProgressBar}: π[ty]8666{Boolean};
π243{maxLength}: π[ty]8655{Number};
π244{timer}: [OOV]any;
π245{speed}: π[ty]8655{Number};
π246{stopTime}: [miss]π[ty]8666{Boolean};
π247{item}: [OOV]π[ty]1{Notification};
function π263{onClickIcon} (π264{$e}: (π[ty]10051{String} β π[ty]10818{MouseEvent})): (π265: π[ty]10033{Void})
{
π[ty]219{NotificationComponent}.item.clickIcon.emit(π264{$e})
if (π[ty]219{NotificationComponent}.clickIconToClose)
{
π[ty]219{NotificationComponent}.remove()
}
}
function π260{onClick} (π261{$e}: (π[ty]10051{String} β π[ty]10818{MouseEvent})): (π262: π[ty]10033{Void})
{
π[ty]219{NotificationComponent}.item.click.emit(π261{$e})
if (π[ty]219{NotificationComponent}.clickToClose)
{
π[ty]219{NotificationComponent}.remove()
}
}
function π250{startTimeOut} (): (π251: π[ty]10033{Void})
{
π[ty]219{NotificationComponent}.steps β΅ π12573{SlashToken}(π[ty]219{NotificationComponent}.timeOut,π8745{Number});
π[ty]219{NotificationComponent}.speed β΅ π12573{SlashToken}(π[ty]219{NotificationComponent}.timeOut,π[ty]219{NotificationComponent}.steps);
π[ty]219{NotificationComponent}.start β΅ π8747{Date}.CONSTRUCTOR().getTime();
function π252{$Lambda27} (): (π253: [miss]π[ty]8655{Number})
{
return π253 = π1{<UNKNOWN>}(π[ty]219{NotificationComponent}.timer,π12490{setTimeout}(π[ty]219{NotificationComponent}.instance,π[ty]219{NotificationComponent}.speed))
}
π[ty]219{NotificationComponent}.zone.runOutsideAngular(π252{$Lambda27})
}
function π256{onLeave} (): (π257: π[ty]10033{Void})
{
if (π[ty]219{NotificationComponent}.pauseOnHover)
{
π[ty]219{NotificationComponent}.stopTime β΅ π8744{Boolean};
function π258{$Lambda28} (): (π259: [miss]π[ty]8655{Number})
{
return π259 = π12490{setTimeout}(π[ty]219{NotificationComponent}.instance,π12616{MinusToken}(π[ty]219{NotificationComponent}.speed,π[ty]219{NotificationComponent}.diff))
}
π[ty]219{NotificationComponent}.zone.runOutsideAngular(π258{$Lambda28})
}
}
function π277{contentType} (π278{item}: [OOV]any,π279{key}: π[ty]10051{String}): (π280: [miss]π[ty]10033{Void})
{
if (π1{<UNKNOWN>}(π278{item},π360{TemplateRef}))
{
π[ty]219{NotificationComponent}.access(π279{key}) β΅ π278{item};
}
else
{
π[ty]219{NotificationComponent}.access(π279{key}) β΅ π[ty]219{NotificationComponent}.domSanitizer.bypassSecurityTrustHtml(π278{item});
}
π[ty]219{NotificationComponent}.access(π12641{PlusToken}(π279{key},π8743{String})) β΅ π1{<UNKNOWN>}(π278{item},π360{TemplateRef});
}
function π273{remove} (): (π274: [miss]π[ty]10033{Void})
{
if (π[ty]219{NotificationComponent}.animate)
{
π[ty]219{NotificationComponent}.item.state β΅ π12641{PlusToken}(π[ty]219{NotificationComponent}.animate,π8743{String});
function π275{$Lambda32} (): (π276: [miss]π[ty]10033{Void})
{
π[ty]219{NotificationComponent}.notificationService.set(π[ty]219{NotificationComponent}.item,π8744{Boolean})
}
π12490{setTimeout}(π275{$Lambda32},π8745{Number})
}
else
{
π[ty]219{NotificationComponent}.notificationService.set(π[ty]219{NotificationComponent}.item,π8744{Boolean})
}
}
function π266{attachOverrides} (): (π267: π[ty]10033{Void})
{
function π268{$Lambda29} (π269{a}): (π270: [miss]π[ty]10033{Void})
{
if (π[ty]219{NotificationComponent}.hasOwnProperty(π269{a}))
{
π[ty]219{NotificationComponent} as any.access(π269{a}) β΅ π[ty]219{NotificationComponent}.item.override.access(π269{a});
}
}
π8741{Object}.keys(π[ty]219{NotificationComponent}.item.override).forEach(π268{$Lambda29})
}
function π254{onEnter} (): (π255: π[ty]10033{Void})
{
if (π[ty]219{NotificationComponent}.pauseOnHover)
{
π[ty]219{NotificationComponent}.stopTime β΅ π8744{Boolean};
}
}
function π248{ngOnInit} (): (π249: π[ty]10033{Void})
{
if (π[ty]219{NotificationComponent}.item.override)
{
π[ty]219{NotificationComponent}.attachOverrides()
}
if (π[ty]219{NotificationComponent}.animate)
{
π[ty]219{NotificationComponent}.item.state β΅ π[ty]219{NotificationComponent}.animate;
}
if (π12612{ExclamationEqualsEqualsToken}(π[ty]219{NotificationComponent}.timeOut,π8745{Number}))
{
π[ty]219{NotificationComponent}.startTimeOut()
}
π[ty]219{NotificationComponent}.contentType(π[ty]219{NotificationComponent}.item.title,π8743{String})
π[ty]219{NotificationComponent}.contentType(π[ty]219{NotificationComponent}.item.content,π8743{String})
π[ty]219{NotificationComponent}.contentType(π[ty]219{NotificationComponent}.item.html,π8743{String})
π[ty]219{NotificationComponent}.safeSvg β΅ π[ty]219{NotificationComponent}.domSanitizer.bypassSecurityTrustHtml(π12546{BarBarToken}(π[ty]219{NotificationComponent}.icon,π[ty]219{NotificationComponent}.item.icon));
}
function π271{ngOnDestroy} (): (π272: π[ty]10033{Void})
{
π12465{clearTimeout}(π[ty]219{NotificationComponent}.timer)
}
}
Module: src/interfaces/icons
type π[ty]281{Icons} = {success: π[ty]10051{String}, warn: π[ty]10051{String}, alert: π[ty]10051{String}, info: π[ty]10051{String}, error: π[ty]10051{String}}
const π282{defaultIcons}: [OOV]π[ty]281{Icons} = {success: π8743{String},warn: π8743{String},alert: π8743{String},info: π8743{String},error: π8743{String}};
Module: src/interfaces/options.type
type π[ty]283{Options} = {theClass: π[ty]10051{String}, preventLastDuplicates: any, maxStack: π[ty]8655{Number}, preventDuplicates: π[ty]8666{Boolean}, rtl: π[ty]8666{Boolean}, icons: π[ty]281{Icons}, timeOut: π[ty]8655{Number}, clickIconToClose: π[ty]8666{Boolean}, clickToClose: π[ty]8666{Boolean}, position: π[ty]8670{Array}, pauseOnHover: π[ty]8666{Boolean}, animate: any, showProgressBar: π[ty]8666{Boolean}, maxLength: π[ty]8655{Number}, lastOnBottom: π[ty]8666{Boolean}}
Module: src/services/notifications.service
function π284{CONSTRUCTOR} (): (π[ty]288{NotificationsService})
{
const π[ty]288{NotificationsService};
const π[ty]288{NotificationsService};
π[ty]288{NotificationsService}.emitter β΅ π369{Subject}.CONSTRUCTOR();
π[ty]288{NotificationsService}.icons β΅ π282{defaultIcons};
}
class π[ty]288{NotificationsService}{
π290{emitter};
π291{icons}: [OOV]π[ty]281{Icons};
function π296{success} (π297{title}: [OOV]any,π298{content}: [OOV]any,π299{override}: [OOV]any): (π300: [OOV]π[ty]1{Notification})
{
return π300 = π[ty]288{NotificationsService}.set({icon: π[ty]288{NotificationsService}.icons.success,override: π299{override},content: π12546{BarBarToken}(π298{content},π8743{String}),title: π297{title},type: π8743{String}},π8744{Boolean})
}
function π316{warn} (π317{title}: [OOV]any,π318{content}: [OOV]any,π319{override}: [OOV]any): (π320: [OOV]π[ty]1{Notification})
{
return π320 = π[ty]288{NotificationsService}.set({icon: π[ty]288{NotificationsService}.icons.warn,override: π319{override},content: π12546{BarBarToken}(π318{content},π8743{String}),title: π317{title},type: π8743{String}},π8744{Boolean})
}
function π306{alert} (π307{title}: [OOV]any,π308{content}: [OOV]any,π309{override}: [OOV]any): (π310: [OOV]π[ty]1{Notification})
{
return π310 = π[ty]288{NotificationsService}.set({icon: π[ty]288{NotificationsService}.icons.alert,override: π309{override},content: π12546{BarBarToken}(π308{content},π8743{String}),title: π307{title},type: π8743{String}},π8744{Boolean})
}
function π292{set} (π293{notification}: [OOV]π[ty]1{Notification},π294{to}: π[ty]8666{Boolean}): (π295: [OOV]π[ty]1{Notification})
{
π293{notification}.id β΅ (π12592{AmpersandAmpersandToken}(π293{notification}.override,π293{notification}.override.id) ? π293{notification}.override.id : π8746{Math}.random().toString(π8745{Number}).substring(π8745{Number});
π293{notification}.click β΅ π341{EventEmitter}.CONSTRUCTOR();
π293{notification}.timeoutEnd β΅ π341{EventEmitter}.CONSTRUCTOR();
π[ty]288{NotificationsService}.emitter.next({command: π8743{String},notification: π293{notification},add: π294{to}})
return π295 = π293{notification}
}
function π326{create} (π327{title}: [OOV]any,π328{content}: [OOV]any,π329{type},π330{override}: [OOV]any): (π331: [OOV]π[ty]1{Notification})
{
return π331 = π[ty]288{NotificationsService}.set({icon: π[ty]288{NotificationsService}.icons as any.access(π329{type}),override: π330{override},content: π328{content},title: π327{title},type: π329{type}},π8744{Boolean})
}
function π311{info} (π312{title}: [OOV]any,π313{content}: [OOV]any,π314{override}: [OOV]any): (π315: [OOV]π[ty]1{Notification})
{
return π315 = π[ty]288{NotificationsService}.set({icon: π[ty]288{NotificationsService}.icons.info,override: π314{override},content: π12546{BarBarToken}(π313{content},π8743{String}),title: π312{title},type: π8743{String}},π8744{Boolean})
}
function π338{remove} (π339{id}: π[ty]10051{String}): (π340: π[ty]10033{Void})
{
if (π339{id})
{
π[ty]288{NotificationsService}.emitter.next({command: π8743{String},id: π339{id}})
}
else
{
π[ty]288{NotificationsService}.emitter.next({command: π8743{String}})
}
}
function π301{error} (π302{title}: [OOV]any,π303{content}: [OOV]any,π304{override}: [OOV]any): (π305: [OOV]π[ty]1{Notification})
{
return π305 = π[ty]288{NotificationsService}.set({icon: π[ty]288{NotificationsService}.icons.error,override: π304{override},content: π12546{BarBarToken}(π303{content},π8743{String}),title: π302{title},type: π8743{String}},π8744{Boolean})
}
function π321{bare} (π322{title}: [OOV]any,π323{content}: [OOV]any,π324{override}: [OOV]any): (π325: [OOV]π[ty]1{Notification})
{
return π325 = π[ty]288{NotificationsService}.set({icon: π8743{String},override: π324{override},content: π12546{BarBarToken}(π323{content},π8743{String}),title: π322{title},type: π8743{String}},π8744{Boolean})
}
function π332{html} (π333{html}: [OOV]any,π334{type},π335{override}: [OOV]any,π336{icon}): (π337: [OOV]π[ty]1{Notification})
{
return π337 = π[ty]288{NotificationsService}.set({html: π333{html},type: π334{type},icon: π[ty]288{NotificationsService}.icons as any.access(π336{icon}),override: π335{override}},π8744{Boolean})
}
}