@kyvg/vue3-notification
Advanced tools
Comparing version 2.2.5 to 2.3.0
@@ -337,14 +337,16 @@ 'use strict'; | ||
pauseTimeout() { | ||
var _a; | ||
if (this.pauseOnHover) { | ||
this.timerControl?.pause(); | ||
(_a = this.timerControl) === null || _a === void 0 ? void 0 : _a.pause(); | ||
} | ||
}, | ||
resumeTimeout() { | ||
var _a; | ||
if (this.pauseOnHover) { | ||
this.timerControl?.resume(); | ||
(_a = this.timerControl) === null || _a === void 0 ? void 0 : _a.resume(); | ||
} | ||
}, | ||
addItem(event = {}) { | ||
event.group ||= ''; | ||
event.data ||= {}; | ||
event.group || (event.group = ''); | ||
event.data || (event.data = {}); | ||
if (this.group !== event.group) { | ||
@@ -411,6 +413,7 @@ return; | ||
notifyClass(item) { | ||
var _a; | ||
return [ | ||
'vue-notification-template', | ||
this.classes, | ||
item.type ?? '', | ||
(_a = item.type) !== null && _a !== void 0 ? _a : '', | ||
]; | ||
@@ -441,3 +444,4 @@ }, | ||
getAnimation(index, el) { | ||
const animation = this.animation?.[index]; | ||
var _a; | ||
const animation = (_a = this.animation) === null || _a === void 0 ? void 0 : _a[index]; | ||
return typeof animation === 'function' | ||
@@ -444,0 +448,0 @@ ? animation.call(this, el) |
@@ -333,14 +333,16 @@ import { defineComponent, TransitionGroup, openBlock, createBlock, withCtx, renderSlot, resolveDynamicComponent, Fragment, renderList, createCommentVNode, createVNode } from 'vue'; | ||
pauseTimeout() { | ||
var _a; | ||
if (this.pauseOnHover) { | ||
this.timerControl?.pause(); | ||
(_a = this.timerControl) === null || _a === void 0 ? void 0 : _a.pause(); | ||
} | ||
}, | ||
resumeTimeout() { | ||
var _a; | ||
if (this.pauseOnHover) { | ||
this.timerControl?.resume(); | ||
(_a = this.timerControl) === null || _a === void 0 ? void 0 : _a.resume(); | ||
} | ||
}, | ||
addItem(event = {}) { | ||
event.group ||= ''; | ||
event.data ||= {}; | ||
event.group || (event.group = ''); | ||
event.data || (event.data = {}); | ||
if (this.group !== event.group) { | ||
@@ -407,6 +409,7 @@ return; | ||
notifyClass(item) { | ||
var _a; | ||
return [ | ||
'vue-notification-template', | ||
this.classes, | ||
item.type ?? '', | ||
(_a = item.type) !== null && _a !== void 0 ? _a : '', | ||
]; | ||
@@ -437,3 +440,4 @@ }, | ||
getAnimation(index, el) { | ||
const animation = this.animation?.[index]; | ||
var _a; | ||
const animation = (_a = this.animation) === null || _a === void 0 ? void 0 : _a[index]; | ||
return typeof animation === 'function' | ||
@@ -440,0 +444,0 @@ ? animation.call(this, el) |
{ | ||
"name": "@kyvg/vue3-notification", | ||
"description": "Vue.js Notification Library", | ||
"version": "2.2.5", | ||
"version": "2.3.0", | ||
"author": "kyvg", | ||
@@ -6,0 +6,0 @@ "private": false, |
@@ -1,2 +0,2 @@ | ||
[![npm](https://img.shields.io/npm/dm/vue-notification.svg)](https://www.npmjs.com/package/@kyvg/vue-notification) | ||
[![npm](https://img.shields.io/npm/dm/@kyvg/vue3-notification)](https://www.npmjs.com/package/@kyvg/vue3-notification) | ||
@@ -353,3 +353,3 @@ # Vue.js notifications | ||
const app = createApp({...}) | ||
app.use(Notifications({ velocity })) | ||
app.use(Notifications, { velocity )) | ||
``` | ||
@@ -356,0 +356,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51409
1149