@3yourmind/vue-yodify
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -69,2 +69,17 @@ module.exports = | ||
/***/ "/HNy": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
// load the styles | ||
var content = __webpack_require__("RtZk"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
if(content.locals) module.exports = content.locals; | ||
// add the styles to the DOM | ||
var add = __webpack_require__("rjj0").default | ||
var update = add("ef56a390", content, true, {"shadowMode":false,"sourceMap":false}); | ||
/***/ }), | ||
/***/ 0: | ||
@@ -84,3 +99,3 @@ /***/ (function(module, exports, __webpack_require__) { | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/tmp/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/BellIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/github/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/BellIcon.vue | ||
// | ||
@@ -112,3 +127,3 @@ // | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-3ac2c12c","hasScoped":true,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/BellIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-3ac2c12c","hasScoped":true,"optionsId":"0","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/BellIcon.vue | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-yodify__icon",class:("vue-yodify__icon--" + _vm.type)},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","fill":"#ffffff"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M10.0270123,4.32949237 L10.0270123,4.32949237 C10.009244,4.22230056 10,4.11222981 10,4 C10,2.8954305 10.8954305,2 12,2 C13.1045695,2 14,2.8954305 14,4 C14,4.11222981 13.990756,4.22230056 13.9729877,4.32949237 C16.8783478,5.32517945 19,8.46389844 19,12.1818182 L19,18 C19,18.5522847 18.5522847,19 18,19 L6,19 C5.44771525,19 5,18.5522847 5,18 L5,12.1818182 C5,8.46389844 7.12165223,5.32517945 10.0270123,4.32949237 Z M17,17 L17,12 C17,8.6862915 14.7614237,6 12,6 C9.23857625,6 7,8.6862915 7,12 L7,17 L17,17 Z M10,20 L14,20 C14,21.1045695 13.1045695,22 12,22 C10.8954305,22 10,21.1045695 10,20 Z"}})])])} | ||
@@ -222,3 +237,3 @@ var staticRenderFns = [] | ||
function injectStyle (context) { | ||
__webpack_require__("lMwN") | ||
__webpack_require__("LBVm") | ||
} | ||
@@ -251,3 +266,3 @@ /* script */ | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/tmp/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/CloseIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/github/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/CloseIcon.vue | ||
// | ||
@@ -275,3 +290,3 @@ // | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-653d2791","hasScoped":false,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/CloseIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-653d2791","hasScoped":false,"optionsId":"0","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/CloseIcon.vue | ||
var CloseIcon_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"height":"24","width":"24","xmlns":"http://www.w3.org/2000/svg"},on:{"click":_vm.click}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M12 10.5857864L8.1109127 6.69669914c-.19526214-.19526214-.51184463-.19526214-.70710678 0l-.70710678.70710678c-.19526214.19526215-.19526214.51184464 0 .70710678L10.5857864 12l-3.88908726 3.8890873c-.19526214.1952621-.19526214.5118446 0 .7071068l.70710678.7071068c.19526215.1952621.51184464.1952621.70710678 0L12 13.4142136l3.8890873 3.8890873c.1952621.1952621.5118446.1952621.7071068 0l.7071068-.7071068c.1952621-.1952622.1952621-.5118447 0-.7071068L13.4142136 12l3.8890873-3.8890873c.1952621-.19526214.1952621-.51184463 0-.70710678l-.7071068-.70710678c-.1952622-.19526214-.5118447-.19526214-.7071068 0L12 10.5857864z"}})])} | ||
@@ -333,3 +348,3 @@ var CloseIcon_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/tmp/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/VueYodify.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/github/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/VueYodify.vue | ||
// | ||
@@ -369,2 +384,4 @@ // | ||
addNotification: function addNotification(_ref) { | ||
var _this = this; | ||
var _ref$id = _ref.id, | ||
@@ -380,3 +397,6 @@ id = _ref$id === void 0 ? generateId() : _ref$id, | ||
type: type | ||
}); // window.setTimeout(() => this.deleteNotification(id), duration); | ||
}); | ||
window.setTimeout(function () { | ||
return _this.deleteNotification(id); | ||
}, duration); | ||
}, | ||
@@ -405,3 +425,3 @@ deleteNotification: function deleteNotification(id) { | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-a66b1d1c","hasScoped":true,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/VueYodify.vue | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-821beb90","hasScoped":true,"optionsId":"0","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/VueYodify.vue | ||
var VueYodify_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-yodify"},_vm._l((_vm.queue),function(notification){return _c('div',{key:notification.id,staticClass:"vue-yodify__notification"},[_c('BellIcon',{attrs:{"type":notification.type}}),_c('div',{staticClass:"vue-yodify__content"},[_c('div',{domProps:{"textContent":_vm._s(notification.text)}})]),_c('div',{staticClass:"vue-yodify__close"},[_c('CloseIcon',{on:{"click":function($event){_vm.deleteNotification(notification.id)}}})],1)],1)}))} | ||
@@ -412,3 +432,3 @@ var VueYodify_staticRenderFns = [] | ||
function VueYodify_injectStyle (context) { | ||
__webpack_require__("MVTA") | ||
__webpack_require__("/HNy") | ||
} | ||
@@ -425,3 +445,3 @@ /* script */ | ||
/* scopeId */ | ||
var VueYodify___vue_scopeId__ = "data-v-a66b1d1c" | ||
var VueYodify___vue_scopeId__ = "data-v-821beb90" | ||
/* moduleIdentifier (server only) */ | ||
@@ -484,3 +504,3 @@ var VueYodify___vue_module_identifier__ = null | ||
/***/ "Aa+j": | ||
/***/ "BPeW": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -493,3 +513,3 @@ | ||
// module | ||
exports.push([module.i, ".vue-yodify[data-v-a66b1d1c]{z-index:9999;position:fixed;top:0;right:8px}.vue-yodify__close[data-v-a66b1d1c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0;flex:0 0;width:48px}.vue-yodify__close>svg[data-v-a66b1d1c]{cursor:pointer;padding:2px;height:24px;width:24px;border-radius:50%}@supports ((-webkit-clip-path:circle(50% at 50% 50%)) or (clip-path:circle(50% at 50% 50%))){.vue-yodify__close>svg[data-v-a66b1d1c]{-webkit-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%);border-radius:unset}}.vue-yodify__close>svg[data-v-a66b1d1c]:hover{background-color:rgba(0,0,0,.1)}.vue-yodify__content[data-v-a66b1d1c]{-webkit-box-flex:1;-ms-flex:1;flex:1}.vue-yodify__content>div[data-v-a66b1d1c]{padding:.93em 3em .93em 1em}.vue-yodify__notification[data-v-a66b1d1c]{background-color:#fff;overflow:hidden;margin:8px 0;width:448px;border-radius:4px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vue-yodify[data-v-a66b1d1c],.vue-yodify [data-v-a66b1d1c]{line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}@media (max-width:460px){.vue-yodify__notification[data-v-a66b1d1c]{width:96%;margin:2%}.vue-yodify[data-v-a66b1d1c]{width:100%;right:0}}", ""]); | ||
exports.push([module.i, ".vue-yodify__icon[data-v-3ac2c12c]{width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-yodify__icon svg[data-v-3ac2c12c]{width:24px;height:24px}.vue-yodify__icon--error[data-v-3ac2c12c]{background-color:#d91919}.vue-yodify__icon--info[data-v-3ac2c12c]{background-color:#2c66c4}.vue-yodify__icon--success[data-v-3ac2c12c]{background-color:#64ad13}.vue-yodify__icon--warn[data-v-3ac2c12c]{background-color:#ffe60d}", ""]); | ||
@@ -584,24 +604,9 @@ // exports | ||
/***/ "G3kA": | ||
/***/ "LBVm": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
exports = module.exports = __webpack_require__("FZ+f")(false); | ||
// imports | ||
// module | ||
exports.push([module.i, ".vue-yodify__icon[data-v-3ac2c12c]{width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-yodify__icon svg[data-v-3ac2c12c]{width:24px;height:24px}.vue-yodify__icon--error[data-v-3ac2c12c]{background-color:#d91919}.vue-yodify__icon--info[data-v-3ac2c12c]{background-color:#2c66c4}.vue-yodify__icon--success[data-v-3ac2c12c]{background-color:#64ad13}.vue-yodify__icon--warn[data-v-3ac2c12c]{background-color:#ffe60d}", ""]); | ||
// exports | ||
/***/ }), | ||
/***/ "MVTA": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
// load the styles | ||
var content = __webpack_require__("Aa+j"); | ||
var content = __webpack_require__("BPeW"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
@@ -611,19 +616,19 @@ if(content.locals) module.exports = content.locals; | ||
var add = __webpack_require__("rjj0").default | ||
var update = add("08b84280", content, true, {"shadowMode":false,"sourceMap":false}); | ||
var update = add("d04e252a", content, true, {"shadowMode":false,"sourceMap":false}); | ||
/***/ }), | ||
/***/ "lMwN": | ||
/***/ "RtZk": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
exports = module.exports = __webpack_require__("FZ+f")(false); | ||
// imports | ||
// load the styles | ||
var content = __webpack_require__("G3kA"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
if(content.locals) module.exports = content.locals; | ||
// add the styles to the DOM | ||
var add = __webpack_require__("rjj0").default | ||
var update = add("28bb3c6c", content, true, {"shadowMode":false,"sourceMap":false}); | ||
// module | ||
exports.push([module.i, ".vue-yodify[data-v-821beb90]{z-index:9999;position:fixed;top:0;right:8px}.vue-yodify__close[data-v-821beb90]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0;flex:0 0;width:48px}.vue-yodify__close>svg[data-v-821beb90]{cursor:pointer;padding:2px;height:24px;width:24px;border-radius:50%}@supports ((-webkit-clip-path:circle(50% at 50% 50%)) or (clip-path:circle(50% at 50% 50%))){.vue-yodify__close>svg[data-v-821beb90]{-webkit-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%);border-radius:unset}}.vue-yodify__close>svg[data-v-821beb90]:hover{background-color:rgba(0,0,0,.1)}.vue-yodify__content[data-v-821beb90]{-webkit-box-flex:1;-ms-flex:1;flex:1}.vue-yodify__content>div[data-v-821beb90]{padding:.93em 3em .93em 1em}.vue-yodify__notification[data-v-821beb90]{background-color:#fff;overflow:hidden;margin:8px 0;width:448px;border-radius:4px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vue-yodify[data-v-821beb90],.vue-yodify [data-v-821beb90]{line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}@media (max-width:460px){.vue-yodify__notification[data-v-821beb90]{width:96%;margin:2%}.vue-yodify[data-v-821beb90]{width:100%;right:0}}", ""]); | ||
// exports | ||
/***/ }), | ||
@@ -630,0 +635,0 @@ |
@@ -86,32 +86,2 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/***/ "1gRL": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
exports = module.exports = __webpack_require__("FZ+f")(false); | ||
// imports | ||
// module | ||
exports.push([module.i, ".vue-yodify[data-v-a66b1d1c]{z-index:9999;position:fixed;top:0;right:8px}.vue-yodify__close[data-v-a66b1d1c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0;flex:0 0;width:48px}.vue-yodify__close>svg[data-v-a66b1d1c]{cursor:pointer;padding:2px;height:24px;width:24px;border-radius:50%}@supports ((-webkit-clip-path:circle(50% at 50% 50%)) or (clip-path:circle(50% at 50% 50%))){.vue-yodify__close>svg[data-v-a66b1d1c]{-webkit-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%);border-radius:unset}}.vue-yodify__close>svg[data-v-a66b1d1c]:hover{background-color:rgba(0,0,0,.1)}.vue-yodify__content[data-v-a66b1d1c]{-webkit-box-flex:1;-ms-flex:1;flex:1}.vue-yodify__content>div[data-v-a66b1d1c]{padding:.93em 3em .93em 1em}.vue-yodify__notification[data-v-a66b1d1c]{background-color:#fff;overflow:hidden;margin:8px 0;width:448px;border-radius:4px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vue-yodify[data-v-a66b1d1c],.vue-yodify [data-v-a66b1d1c]{line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}@media (max-width:460px){.vue-yodify__notification[data-v-a66b1d1c]{width:96%;margin:2%}.vue-yodify[data-v-a66b1d1c]{width:100%;right:0}}", ""]); | ||
// exports | ||
/***/ }), | ||
/***/ "2Say": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
// load the styles | ||
var content = __webpack_require__("1gRL"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
if(content.locals) module.exports = content.locals; | ||
// add the styles to the DOM | ||
var add = __webpack_require__("rjj0").default | ||
var update = add("2b7a557e", content, true, {"shadowMode":false,"sourceMap":false}); | ||
/***/ }), | ||
/***/ "97+o": | ||
@@ -123,3 +93,3 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/tmp/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/BellIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/github/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/BellIcon.vue | ||
// | ||
@@ -151,3 +121,3 @@ // | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-3ac2c12c","hasScoped":true,"optionsId":"2","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/BellIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-3ac2c12c","hasScoped":true,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/BellIcon.vue | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-yodify__icon",class:("vue-yodify__icon--" + _vm.type)},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","fill":"#ffffff"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M10.0270123,4.32949237 L10.0270123,4.32949237 C10.009244,4.22230056 10,4.11222981 10,4 C10,2.8954305 10.8954305,2 12,2 C13.1045695,2 14,2.8954305 14,4 C14,4.11222981 13.990756,4.22230056 13.9729877,4.32949237 C16.8783478,5.32517945 19,8.46389844 19,12.1818182 L19,18 C19,18.5522847 18.5522847,19 18,19 L6,19 C5.44771525,19 5,18.5522847 5,18 L5,12.1818182 C5,8.46389844 7.12165223,5.32517945 10.0270123,4.32949237 Z M17,17 L17,12 C17,8.6862915 14.7614237,6 12,6 C9.23857625,6 7,8.6862915 7,12 L7,17 L17,17 Z M10,20 L14,20 C14,21.1045695 13.1045695,22 12,22 C10.8954305,22 10,21.1045695 10,20 Z"}})])])} | ||
@@ -261,3 +231,3 @@ var staticRenderFns = [] | ||
function injectStyle (context) { | ||
__webpack_require__("acgk") | ||
__webpack_require__("lMwN") | ||
} | ||
@@ -290,3 +260,3 @@ /* script */ | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/tmp/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/CloseIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/github/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/CloseIcon.vue | ||
// | ||
@@ -314,3 +284,3 @@ // | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-653d2791","hasScoped":false,"optionsId":"2","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/CloseIcon.vue | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-653d2791","hasScoped":false,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/CloseIcon.vue | ||
var CloseIcon_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{attrs:{"height":"24","width":"24","xmlns":"http://www.w3.org/2000/svg"},on:{"click":_vm.click}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M12 10.5857864L8.1109127 6.69669914c-.19526214-.19526214-.51184463-.19526214-.70710678 0l-.70710678.70710678c-.19526214.19526215-.19526214.51184464 0 .70710678L10.5857864 12l-3.88908726 3.8890873c-.19526214.1952621-.19526214.5118446 0 .7071068l.70710678.7071068c.19526215.1952621.51184464.1952621.70710678 0L12 13.4142136l3.8890873 3.8890873c.1952621.1952621.5118446.1952621.7071068 0l.7071068-.7071068c.1952621-.1952622.1952621-.5118447 0-.7071068L13.4142136 12l3.8890873-3.8890873c.1952621-.19526214.1952621-.51184463 0-.70710678l-.7071068-.70710678c-.1952622-.19526214-.5118447-.19526214-.7071068 0L12 10.5857864z"}})])} | ||
@@ -372,3 +342,3 @@ var CloseIcon_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/tmp/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/VueYodify.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/jpu/Documents/github/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./source/components/VueYodify.vue | ||
// | ||
@@ -408,2 +378,4 @@ // | ||
addNotification: function addNotification(_ref) { | ||
var _this = this; | ||
var _ref$id = _ref.id, | ||
@@ -419,3 +391,6 @@ id = _ref$id === void 0 ? generateId() : _ref$id, | ||
type: type | ||
}); // window.setTimeout(() => this.deleteNotification(id), duration); | ||
}); | ||
window.setTimeout(function () { | ||
return _this.deleteNotification(id); | ||
}, duration); | ||
}, | ||
@@ -444,3 +419,3 @@ deleteNotification: function deleteNotification(id) { | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-a66b1d1c","hasScoped":true,"optionsId":"2","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/VueYodify.vue | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-821beb90","hasScoped":true,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./source/components/VueYodify.vue | ||
var VueYodify_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vue-yodify"},_vm._l((_vm.queue),function(notification){return _c('div',{key:notification.id,staticClass:"vue-yodify__notification"},[_c('BellIcon',{attrs:{"type":notification.type}}),_c('div',{staticClass:"vue-yodify__content"},[_c('div',{domProps:{"textContent":_vm._s(notification.text)}})]),_c('div',{staticClass:"vue-yodify__close"},[_c('CloseIcon',{on:{"click":function($event){_vm.deleteNotification(notification.id)}}})],1)],1)}))} | ||
@@ -451,3 +426,3 @@ var VueYodify_staticRenderFns = [] | ||
function VueYodify_injectStyle (context) { | ||
__webpack_require__("2Say") | ||
__webpack_require__("lex3") | ||
} | ||
@@ -464,3 +439,3 @@ /* script */ | ||
/* scopeId */ | ||
var VueYodify___vue_scopeId__ = "data-v-a66b1d1c" | ||
var VueYodify___vue_scopeId__ = "data-v-821beb90" | ||
/* moduleIdentifier (server only) */ | ||
@@ -606,3 +581,3 @@ var VueYodify___vue_module_identifier__ = null | ||
/***/ "IU13": | ||
/***/ "G3kA": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -622,9 +597,24 @@ | ||
/***/ "acgk": | ||
/***/ "XVM/": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
exports = module.exports = __webpack_require__("FZ+f")(false); | ||
// imports | ||
// module | ||
exports.push([module.i, ".vue-yodify[data-v-821beb90]{z-index:9999;position:fixed;top:0;right:8px}.vue-yodify__close[data-v-821beb90]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0;flex:0 0;width:48px}.vue-yodify__close>svg[data-v-821beb90]{cursor:pointer;padding:2px;height:24px;width:24px;border-radius:50%}@supports ((-webkit-clip-path:circle(50% at 50% 50%)) or (clip-path:circle(50% at 50% 50%))){.vue-yodify__close>svg[data-v-821beb90]{-webkit-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%);border-radius:unset}}.vue-yodify__close>svg[data-v-821beb90]:hover{background-color:rgba(0,0,0,.1)}.vue-yodify__content[data-v-821beb90]{-webkit-box-flex:1;-ms-flex:1;flex:1}.vue-yodify__content>div[data-v-821beb90]{padding:.93em 3em .93em 1em}.vue-yodify__notification[data-v-821beb90]{background-color:#fff;overflow:hidden;margin:8px 0;width:448px;border-radius:4px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vue-yodify[data-v-821beb90],.vue-yodify [data-v-821beb90]{line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}@media (max-width:460px){.vue-yodify__notification[data-v-821beb90]{width:96%;margin:2%}.vue-yodify[data-v-821beb90]{width:100%;right:0}}", ""]); | ||
// exports | ||
/***/ }), | ||
/***/ "lMwN": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
// load the styles | ||
var content = __webpack_require__("IU13"); | ||
var content = __webpack_require__("G3kA"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
@@ -634,6 +624,21 @@ if(content.locals) module.exports = content.locals; | ||
var add = __webpack_require__("rjj0").default | ||
var update = add("8cc4e926", content, true, {"shadowMode":false,"sourceMap":false}); | ||
var update = add("28bb3c6c", content, true, {"shadowMode":false,"sourceMap":false}); | ||
/***/ }), | ||
/***/ "lex3": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// style-loader: Adds some css to the DOM by adding a <style> tag | ||
// load the styles | ||
var content = __webpack_require__("XVM/"); | ||
if(typeof content === 'string') content = [[module.i, content, '']]; | ||
if(content.locals) module.exports = content.locals; | ||
// add the styles to the DOM | ||
var add = __webpack_require__("rjj0").default | ||
var update = add("69df40f9", content, true, {"shadowMode":false,"sourceMap":false}); | ||
/***/ }), | ||
/***/ "rjj0": | ||
@@ -640,0 +645,0 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { |
@@ -1,2 +0,2 @@ | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-yodify"]=t():e["vue-yodify"]=t()})("undefined"!==typeof self?self:this,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="./",o(o.s=0)}({0:function(e,t,o){e.exports=o("97+o")},"97+o":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"BellIcon",props:{type:{required:!0,type:String}}},i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vue-yodify__icon",class:"vue-yodify__icon--"+e.type},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#ffffff"}},[o("path",{attrs:{"fill-rule":"evenodd",d:"M10.0270123,4.32949237 L10.0270123,4.32949237 C10.009244,4.22230056 10,4.11222981 10,4 C10,2.8954305 10.8954305,2 12,2 C13.1045695,2 14,2.8954305 14,4 C14,4.11222981 13.990756,4.22230056 13.9729877,4.32949237 C16.8783478,5.32517945 19,8.46389844 19,12.1818182 L19,18 C19,18.5522847 18.5522847,19 18,19 L6,19 C5.44771525,19 5,18.5522847 5,18 L5,12.1818182 C5,8.46389844 7.12165223,5.32517945 10.0270123,4.32949237 Z M17,17 L17,12 C17,8.6862915 14.7614237,6 12,6 C9.23857625,6 7,8.6862915 7,12 L7,17 L17,17 Z M10,20 L14,20 C14,21.1045695 13.1045695,22 12,22 C10.8954305,22 10,21.1045695 10,20 Z"}})])])},r=[];function a(e,t,o,n,i,r,a,c){e=e||{};var s=typeof e.default;"object"!==s&&"function"!==s||(e=e.default);var d,f="function"===typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=o,f._compiled=!0),n&&(f.functional=!0),r&&(f._scopeId=r),a?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=d):i&&(d=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),d)if(f.functional){f._injectStyles=d;var u=f.render;f.render=function(e,t){return d.call(t),u(e,t)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,d):[d]}return{exports:e,options:f}}function c(e){o("LBVm")}var s=!1,d=c,f="data-v-3ac2c12c",u=null,l=a(n,i,r,s,d,f,u),p=l.exports,v={name:"CloseIcon",methods:{click:function(){this.$emit("click")}}},y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("svg",{attrs:{height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg"},on:{click:e.click}},[o("path",{attrs:{"fill-rule":"evenodd",d:"M12 10.5857864L8.1109127 6.69669914c-.19526214-.19526214-.51184463-.19526214-.70710678 0l-.70710678.70710678c-.19526214.19526215-.19526214.51184464 0 .70710678L10.5857864 12l-3.88908726 3.8890873c-.19526214.1952621-.19526214.5118446 0 .7071068l.70710678.7071068c.19526215.1952621.51184464.1952621.70710678 0L12 13.4142136l3.8890873 3.8890873c.1952621.1952621.5118446.1952621.7071068 0l.7071068-.7071068c.1952621-.1952622.1952621-.5118447 0-.7071068L13.4142136 12l3.8890873-3.8890873c.1952621-.19526214.1952621-.51184463 0-.70710678l-.7071068-.70710678c-.1952622-.19526214-.5118447-.19526214-.7071068 0L12 10.5857864z"}})])},h=[],b=!1,x=null,g=null,m=null,_=a(v,y,h,b,x,g,m),w=_.exports;const C=(e=64)=>{const t=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),o=[];for(let n=0;n<e;n+=16)o.push(t());return o.join("")},k=({id:e})=>({id:t})=>e!==t;var j={name:"VueYodify",components:{BellIcon:p,CloseIcon:w},data:function(){return{queue:[]}},methods:{addNotification:function(e){var t=e.id,o=void 0===t?C():t,n=e.text,i=e.type;e.duration;this.queue.push({id:o,text:n,type:i})},deleteNotification:function(e){this.queue=this.queue.filter(k({id:e}))},iconClass:function(e){return"vue-yodify__icon vue-yodify__icon--".concat(e)}},created:function(){var e;while(e=this.$yodifyBuffer.pop())this.addNotification(e);this.$root.$on("vue-yodify",this.addNotification)},beforeDestroy:function(){this.$root.$off("vue-yodify",this.addNotification)}},$=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vue-yodify"},e._l(e.queue,function(t){return o("div",{key:t.id,staticClass:"vue-yodify__notification"},[o("BellIcon",{attrs:{type:t.type}}),o("div",{staticClass:"vue-yodify__content"},[o("div",{domProps:{textContent:e._s(t.text)}})]),o("div",{staticClass:"vue-yodify__close"},[o("CloseIcon",{on:{click:function(o){e.deleteNotification(t.id)}}})],1)],1)}))},L=[];function M(e){o("bfnD")}var B=!1,N=M,S="data-v-a66b1d1c",E=null,I=a(j,$,L,B,N,S,E),R=I.exports;t["default"]={install(e){this.installed||(this.installed=!0,e.component("vue-yodify",R),e.prototype.$yodifyBuffer=[],e.prototype.$yodify=function({duration:t=3e3,text:o,type:n="success"}){const i={duration:t,text:o,type:n};this.$root?this.$root.$emit("vue-yodify",i):e.prototype.$yodifyBuffer.push(i)})}}},BPeW:function(e,t,o){t=e.exports=o("FZ+f")(!1),t.push([e.i,".vue-yodify__icon[data-v-3ac2c12c]{width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-yodify__icon svg[data-v-3ac2c12c]{width:24px;height:24px}.vue-yodify__icon--error[data-v-3ac2c12c]{background-color:#d91919}.vue-yodify__icon--info[data-v-3ac2c12c]{background-color:#2c66c4}.vue-yodify__icon--success[data-v-3ac2c12c]{background-color:#64ad13}.vue-yodify__icon--warn[data-v-3ac2c12c]{background-color:#ffe60d}",""])},"FZ+f":function(e,t){function o(e,t){var o=e[1]||"",i=e[3];if(!i)return o;if(t&&"function"===typeof btoa){var r=n(i),a=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[o].concat(a).concat([r]).join("\n")}return[o].join("\n")}function n(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+o+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=o(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,o){"string"===typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"===typeof r&&(n[r]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"===typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),t.push(a))}},t}},LBVm:function(e,t,o){var n=o("BPeW");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("rjj0").default;i("d04e252a",n,!0,{shadowMode:!1,sourceMap:!1})},bfnD:function(e,t,o){var n=o("oIcZ");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("rjj0").default;i("272dafbf",n,!0,{shadowMode:!1,sourceMap:!1})},oIcZ:function(e,t,o){t=e.exports=o("FZ+f")(!1),t.push([e.i,".vue-yodify[data-v-a66b1d1c]{z-index:9999;position:fixed;top:0;right:8px}.vue-yodify__close[data-v-a66b1d1c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0;flex:0 0;width:48px}.vue-yodify__close>svg[data-v-a66b1d1c]{cursor:pointer;padding:2px;height:24px;width:24px;border-radius:50%}@supports ((-webkit-clip-path:circle(50% at 50% 50%)) or (clip-path:circle(50% at 50% 50%))){.vue-yodify__close>svg[data-v-a66b1d1c]{-webkit-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%);border-radius:unset}}.vue-yodify__close>svg[data-v-a66b1d1c]:hover{background-color:rgba(0,0,0,.1)}.vue-yodify__content[data-v-a66b1d1c]{-webkit-box-flex:1;-ms-flex:1;flex:1}.vue-yodify__content>div[data-v-a66b1d1c]{padding:.93em 3em .93em 1em}.vue-yodify__notification[data-v-a66b1d1c]{background-color:#fff;overflow:hidden;margin:8px 0;width:448px;border-radius:4px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vue-yodify[data-v-a66b1d1c],.vue-yodify [data-v-a66b1d1c]{line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}@media (max-width:460px){.vue-yodify__notification[data-v-a66b1d1c]{width:96%;margin:2%}.vue-yodify[data-v-a66b1d1c]{width:100%;right:0}}",""])},rjj0:function(e,t,o){"use strict";function n(e,t){for(var o=[],n={},i=0;i<t.length;i++){var r=t[i],a=r[0],c=r[1],s=r[2],d=r[3],f={id:e+":"+i,css:c,media:s,sourceMap:d};n[a]?n[a].parts.push(f):o.push(n[a]={id:a,parts:[f]})}return o}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=v;var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},a=i&&(document.head||document.getElementsByTagName("head")[0]),c=null,s=0,d=!1,f=function(){},u=null,l="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(e,t,o,i){d=o,u=i||{};var a=n(e,t);return y(a),function(t){for(var o=[],i=0;i<a.length;i++){var c=a[i],s=r[c.id];s.refs--,o.push(s)}t?(a=n(e,t),y(a)):a=[];for(i=0;i<o.length;i++){s=o[i];if(0===s.refs){for(var d=0;d<s.parts.length;d++)s.parts[d]();delete r[s.id]}}}}function y(e){for(var t=0;t<e.length;t++){var o=e[t],n=r[o.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](o.parts[i]);for(;i<o.parts.length;i++)n.parts.push(b(o.parts[i]));n.parts.length>o.parts.length&&(n.parts.length=o.parts.length)}else{var a=[];for(i=0;i<o.parts.length;i++)a.push(b(o.parts[i]));r[o.id]={id:o.id,refs:1,parts:a}}}}function h(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function b(e){var t,o,n=document.querySelector("style["+l+'~="'+e.id+'"]');if(n){if(d)return f;n.parentNode.removeChild(n)}if(p){var i=s++;n=c||(c=h()),t=g.bind(null,n,i,!1),o=g.bind(null,n,i,!0)}else n=h(),t=m.bind(null,n),o=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else o()}}var x=function(){var e=[];return function(t,o){return e[t]=o,e.filter(Boolean).join("\n")}}();function g(e,t,o,n){var i=o?"":n.css;if(e.styleSheet)e.styleSheet.cssText=x(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function m(e,t){var o=t.css,n=t.media,i=t.sourceMap;if(n&&e.setAttribute("media",n),u.ssrId&&e.setAttribute(l,t.id),i&&(o+="\n/*# sourceURL="+i.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=o;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}}})["default"]}); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-yodify"]=t():e["vue-yodify"]=t()})("undefined"!==typeof self?self:this,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="./",o(o.s=0)}({0:function(e,t,o){e.exports=o("97+o")},"97+o":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"BellIcon",props:{type:{required:!0,type:String}}},i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vue-yodify__icon",class:"vue-yodify__icon--"+e.type},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#ffffff"}},[o("path",{attrs:{"fill-rule":"evenodd",d:"M10.0270123,4.32949237 L10.0270123,4.32949237 C10.009244,4.22230056 10,4.11222981 10,4 C10,2.8954305 10.8954305,2 12,2 C13.1045695,2 14,2.8954305 14,4 C14,4.11222981 13.990756,4.22230056 13.9729877,4.32949237 C16.8783478,5.32517945 19,8.46389844 19,12.1818182 L19,18 C19,18.5522847 18.5522847,19 18,19 L6,19 C5.44771525,19 5,18.5522847 5,18 L5,12.1818182 C5,8.46389844 7.12165223,5.32517945 10.0270123,4.32949237 Z M17,17 L17,12 C17,8.6862915 14.7614237,6 12,6 C9.23857625,6 7,8.6862915 7,12 L7,17 L17,17 Z M10,20 L14,20 C14,21.1045695 13.1045695,22 12,22 C10.8954305,22 10,21.1045695 10,20 Z"}})])])},r=[];function a(e,t,o,n,i,r,a,s){e=e||{};var c=typeof e.default;"object"!==c&&"function"!==c||(e=e.default);var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=o,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),a?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=d):i&&(d=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),d)if(u.functional){u._injectStyles=d;var f=u.render;u.render=function(e,t){return d.call(t),f(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,d):[d]}return{exports:e,options:u}}function s(e){o("acgk")}var c=!1,d=s,u="data-v-3ac2c12c",f=null,l=a(n,i,r,c,d,u,f),p=l.exports,v={name:"CloseIcon",methods:{click:function(){this.$emit("click")}}},y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("svg",{attrs:{height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg"},on:{click:e.click}},[o("path",{attrs:{"fill-rule":"evenodd",d:"M12 10.5857864L8.1109127 6.69669914c-.19526214-.19526214-.51184463-.19526214-.70710678 0l-.70710678.70710678c-.19526214.19526215-.19526214.51184464 0 .70710678L10.5857864 12l-3.88908726 3.8890873c-.19526214.1952621-.19526214.5118446 0 .7071068l.70710678.7071068c.19526215.1952621.51184464.1952621.70710678 0L12 13.4142136l3.8890873 3.8890873c.1952621.1952621.5118446.1952621.7071068 0l.7071068-.7071068c.1952621-.1952622.1952621-.5118447 0-.7071068L13.4142136 12l3.8890873-3.8890873c.1952621-.19526214.1952621-.51184463 0-.70710678l-.7071068-.70710678c-.1952622-.19526214-.5118447-.19526214-.7071068 0L12 10.5857864z"}})])},h=[],b=!1,x=null,g=null,m=null,_=a(v,y,h,b,x,g,m),w=_.exports;const C=(e=64)=>{const t=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),o=[];for(let n=0;n<e;n+=16)o.push(t());return o.join("")},k=({id:e})=>({id:t})=>e!==t;var j={name:"VueYodify",components:{BellIcon:p,CloseIcon:w},data:function(){return{queue:[]}},methods:{addNotification:function(e){var t=this,o=e.id,n=void 0===o?C():o,i=e.text,r=e.type,a=e.duration,s=void 0===a?3e3:a;this.queue.push({id:n,text:i,type:r}),window.setTimeout(function(){return t.deleteNotification(n)},s)},deleteNotification:function(e){this.queue=this.queue.filter(k({id:e}))},iconClass:function(e){return"vue-yodify__icon vue-yodify__icon--".concat(e)}},created:function(){var e;while(e=this.$yodifyBuffer.pop())this.addNotification(e);this.$root.$on("vue-yodify",this.addNotification)},beforeDestroy:function(){this.$root.$off("vue-yodify",this.addNotification)}},$=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vue-yodify"},e._l(e.queue,function(t){return o("div",{key:t.id,staticClass:"vue-yodify__notification"},[o("BellIcon",{attrs:{type:t.type}}),o("div",{staticClass:"vue-yodify__content"},[o("div",{domProps:{textContent:e._s(t.text)}})]),o("div",{staticClass:"vue-yodify__close"},[o("CloseIcon",{on:{click:function(o){e.deleteNotification(t.id)}}})],1)],1)}))},M=[];function L(e){o("gh5j")}var N=!1,S=L,U="data-v-821beb90",B=null,E=a(j,$,M,N,S,U,B),I=E.exports;t["default"]={install(e){this.installed||(this.installed=!0,e.component("vue-yodify",I),e.prototype.$yodifyBuffer=[],e.prototype.$yodify=function({duration:t=3e3,text:o,type:n="success"}){const i={duration:t,text:o,type:n};this.$root?this.$root.$emit("vue-yodify",i):e.prototype.$yodifyBuffer.push(i)})}}},"FZ+f":function(e,t){function o(e,t){var o=e[1]||"",i=e[3];if(!i)return o;if(t&&"function"===typeof btoa){var r=n(i),a=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[o].concat(a).concat([r]).join("\n")}return[o].join("\n")}function n(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+o+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=o(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,o){"string"===typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"===typeof r&&(n[r]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"===typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),t.push(a))}},t}},IU13:function(e,t,o){t=e.exports=o("FZ+f")(!1),t.push([e.i,".vue-yodify__icon[data-v-3ac2c12c]{width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-yodify__icon svg[data-v-3ac2c12c]{width:24px;height:24px}.vue-yodify__icon--error[data-v-3ac2c12c]{background-color:#d91919}.vue-yodify__icon--info[data-v-3ac2c12c]{background-color:#2c66c4}.vue-yodify__icon--success[data-v-3ac2c12c]{background-color:#64ad13}.vue-yodify__icon--warn[data-v-3ac2c12c]{background-color:#ffe60d}",""])},WHme:function(e,t,o){t=e.exports=o("FZ+f")(!1),t.push([e.i,".vue-yodify[data-v-821beb90]{z-index:9999;position:fixed;top:0;right:8px}.vue-yodify__close[data-v-821beb90]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:0;-ms-flex:0 0;flex:0 0;width:48px}.vue-yodify__close>svg[data-v-821beb90]{cursor:pointer;padding:2px;height:24px;width:24px;border-radius:50%}@supports ((-webkit-clip-path:circle(50% at 50% 50%)) or (clip-path:circle(50% at 50% 50%))){.vue-yodify__close>svg[data-v-821beb90]{-webkit-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%);border-radius:unset}}.vue-yodify__close>svg[data-v-821beb90]:hover{background-color:rgba(0,0,0,.1)}.vue-yodify__content[data-v-821beb90]{-webkit-box-flex:1;-ms-flex:1;flex:1}.vue-yodify__content>div[data-v-821beb90]{padding:.93em 3em .93em 1em}.vue-yodify__notification[data-v-821beb90]{background-color:#fff;overflow:hidden;margin:8px 0;width:448px;border-radius:4px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vue-yodify[data-v-821beb90],.vue-yodify [data-v-821beb90]{line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}@media (max-width:460px){.vue-yodify__notification[data-v-821beb90]{width:96%;margin:2%}.vue-yodify[data-v-821beb90]{width:100%;right:0}}",""])},acgk:function(e,t,o){var n=o("IU13");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("rjj0").default;i("8cc4e926",n,!0,{shadowMode:!1,sourceMap:!1})},gh5j:function(e,t,o){var n=o("WHme");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("rjj0").default;i("4b69d3ba",n,!0,{shadowMode:!1,sourceMap:!1})},rjj0:function(e,t,o){"use strict";function n(e,t){for(var o=[],n={},i=0;i<t.length;i++){var r=t[i],a=r[0],s=r[1],c=r[2],d=r[3],u={id:e+":"+i,css:s,media:c,sourceMap:d};n[a]?n[a].parts.push(u):o.push(n[a]={id:a,parts:[u]})}return o}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=v;var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,d=!1,u=function(){},f=null,l="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(e,t,o,i){d=o,f=i||{};var a=n(e,t);return y(a),function(t){for(var o=[],i=0;i<a.length;i++){var s=a[i],c=r[s.id];c.refs--,o.push(c)}t?(a=n(e,t),y(a)):a=[];for(i=0;i<o.length;i++){c=o[i];if(0===c.refs){for(var d=0;d<c.parts.length;d++)c.parts[d]();delete r[c.id]}}}}function y(e){for(var t=0;t<e.length;t++){var o=e[t],n=r[o.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](o.parts[i]);for(;i<o.parts.length;i++)n.parts.push(b(o.parts[i]));n.parts.length>o.parts.length&&(n.parts.length=o.parts.length)}else{var a=[];for(i=0;i<o.parts.length;i++)a.push(b(o.parts[i]));r[o.id]={id:o.id,refs:1,parts:a}}}}function h(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function b(e){var t,o,n=document.querySelector("style["+l+'~="'+e.id+'"]');if(n){if(d)return u;n.parentNode.removeChild(n)}if(p){var i=c++;n=s||(s=h()),t=g.bind(null,n,i,!1),o=g.bind(null,n,i,!0)}else n=h(),t=m.bind(null,n),o=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else o()}}var x=function(){var e=[];return function(t,o){return e[t]=o,e.filter(Boolean).join("\n")}}();function g(e,t,o,n){var i=o?"":n.css;if(e.styleSheet)e.styleSheet.cssText=x(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function m(e,t){var o=t.css,n=t.media,i=t.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(l,t.id),i&&(o+="\n/*# sourceURL="+i.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=o;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}}})["default"]}); | ||
//# sourceMappingURL=vue-yodify.umd.min.js.map |
{ | ||
"babel": { | ||
"presets": ["@vue/app"] | ||
"presets": [ | ||
"@vue/app" | ||
] | ||
}, | ||
"browserslist": ["> 1%", "last 2 versions", "not ie <= 8"], | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not ie <= 8" | ||
], | ||
"contributors": [ | ||
@@ -21,4 +27,3 @@ { | ||
"dependencies": {}, | ||
"description": | ||
"A Vue.js notification plugin with easy installation and usage", | ||
"description": "A Vue.js notification plugin with easy installation and usage", | ||
"devDependencies": { | ||
@@ -38,7 +43,17 @@ "@vue/cli-plugin-babel": "^3.0.0-beta.6", | ||
"eslintConfig": { | ||
"extends": ["plugin:vue/essential", "@vue/prettier"], | ||
"extends": [ | ||
"plugin:vue/essential", | ||
"@vue/prettier" | ||
], | ||
"root": true | ||
}, | ||
"files": ["dist/"], | ||
"keywords": ["vue", "component", "notification", "responsive"], | ||
"files": [ | ||
"dist/" | ||
], | ||
"keywords": [ | ||
"vue", | ||
"component", | ||
"notification", | ||
"responsive" | ||
], | ||
"license": "MIT", | ||
@@ -62,7 +77,5 @@ "main": "dist/vue-yodify.umd.js", | ||
"scripts": { | ||
"build": | ||
"YODIFY_BUILD_LIBRARY=1 vue-cli-service build --target lib --name vue-yodify source/index.js", | ||
"build": "YODIFY_BUILD_LIBRARY=1 vue-cli-service build --target lib --name vue-yodify source/index.js", | ||
"lint": "vue-cli-service lint", | ||
"postpublish": | ||
"git tag $(node -e \"process.stdout.write(require('./package.json').version)\") && git push --tags", | ||
"postpublish": "git tag $(node -e \"process.stdout.write(require('./package.json').version)\") && git push --tags", | ||
"precommit": "precise-commits && npm run lint", | ||
@@ -72,3 +85,3 @@ "prepublishOnly": "npm run build", | ||
}, | ||
"version": "0.2.6" | ||
"version": "0.2.7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
216700
1604
0