@3yourmind/vue-yodify
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -64,3 +64,3 @@ module.exports = | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = "SrUm"); | ||
/******/ return __webpack_require__(__webpack_require__.s = 0); | ||
/******/ }) | ||
@@ -70,3 +70,11 @@ /************************************************************************/ | ||
/***/ "J8kJ": | ||
/***/ 0: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = __webpack_require__("97+o"); | ||
/***/ }), | ||
/***/ "4SgS": | ||
/***/ (function(module, exports) { | ||
@@ -78,3 +86,3 @@ | ||
/***/ "SrUm": | ||
/***/ "97+o": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -85,7 +93,3 @@ | ||
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} | ||
var external___commonjs___vue___commonjs2___vue___root___Vue__ = __webpack_require__("lRwf"); | ||
var external___commonjs___vue___commonjs2___vue___root___Vue___default = /*#__PURE__*/__webpack_require__.n(external___commonjs___vue___commonjs2___vue___root___Vue__); | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./example/App.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/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 | ||
// | ||
@@ -100,7 +104,21 @@ // | ||
// | ||
/* harmony default export */ var App = ({ | ||
name: 'app' | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
/* harmony default export */ var BellIcon = ({ | ||
name: 'BellIcon', | ||
props: { | ||
type: { | ||
required: true, | ||
type: String | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-45c7aa94","hasScoped":false,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./example/App.vue | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-yodify'),_c('div',{attrs:{"id":"example"}},[_c('button',{on:{"click":function($event){_vm.$yodify({text: 'Wow', type: 'success'})}}},[_vm._v("Yodify")])])],1)} | ||
// 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"}})])])} | ||
var staticRenderFns = [] | ||
@@ -211,5 +229,5 @@ | ||
// CONCATENATED MODULE: ./example/App.vue | ||
// CONCATENATED MODULE: ./source/components/BellIcon.vue | ||
function injectStyle (context) { | ||
__webpack_require__("cAr6") | ||
__webpack_require__("ZO80") | ||
} | ||
@@ -226,3 +244,3 @@ /* script */ | ||
/* scopeId */ | ||
var __vue_scopeId__ = null | ||
var __vue_scopeId__ = "data-v-3ac2c12c" | ||
/* moduleIdentifier (server only) */ | ||
@@ -232,3 +250,3 @@ var __vue_module_identifier__ = null | ||
var Component = normalizeComponent( | ||
App, | ||
BellIcon, | ||
render, | ||
@@ -242,65 +260,4 @@ staticRenderFns, | ||
/* harmony default export */ var example_App = (Component.exports); | ||
/* harmony default export */ var components_BellIcon = (Component.exports); | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/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 | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
/* harmony default export */ var BellIcon = ({ | ||
name: 'BellIcon', | ||
props: { | ||
type: { | ||
required: true, | ||
type: String | ||
} | ||
} | ||
}); | ||
// 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 BellIcon_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"}})])])} | ||
var BellIcon_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./source/components/BellIcon.vue | ||
function BellIcon_injectStyle (context) { | ||
__webpack_require__("hWjl") | ||
} | ||
/* script */ | ||
/* template */ | ||
/* template functional */ | ||
var BellIcon___vue_template_functional__ = false | ||
/* styles */ | ||
var BellIcon___vue_styles__ = BellIcon_injectStyle | ||
/* scopeId */ | ||
var BellIcon___vue_scopeId__ = "data-v-3ac2c12c" | ||
/* moduleIdentifier (server only) */ | ||
var BellIcon___vue_module_identifier__ = null | ||
var BellIcon_Component = normalizeComponent( | ||
BellIcon, | ||
BellIcon_render, | ||
BellIcon_staticRenderFns, | ||
BellIcon___vue_template_functional__, | ||
BellIcon___vue_styles__, | ||
BellIcon___vue_scopeId__, | ||
BellIcon___vue_module_identifier__ | ||
) | ||
/* harmony default export */ var components_BellIcon = (BellIcon_Component.exports); | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/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 | ||
@@ -321,3 +278,3 @@ // | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-dea79338","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-dea79338","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:{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24"},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"}})])} | ||
@@ -453,3 +410,3 @@ var CloseIcon_staticRenderFns = [] | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-2139ba61","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-2139ba61","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)}))} | ||
@@ -460,3 +417,3 @@ var VueYodify_staticRenderFns = [] | ||
function VueYodify_injectStyle (context) { | ||
__webpack_require__("J8kJ") | ||
__webpack_require__("4SgS") | ||
} | ||
@@ -493,3 +450,3 @@ /* script */ | ||
/* harmony default export */ var source = ({ | ||
/* harmony default export */ var source = __webpack_exports__["default"] = ({ | ||
install(Vue) { | ||
@@ -525,19 +482,6 @@ if (this.installed) return; | ||
// CONCATENATED MODULE: ./example/main.js | ||
external___commonjs___vue___commonjs2___vue___root___Vue___default.a.config.productionTip = false; | ||
external___commonjs___vue___commonjs2___vue___root___Vue___default.a.use(source); | ||
new external___commonjs___vue___commonjs2___vue___root___Vue___default.a({ | ||
render: h => h(example_App), | ||
}).$mount('#app'); | ||
/***/ }), | ||
/***/ "cAr6": | ||
/***/ "ZO80": | ||
/***/ (function(module, exports) { | ||
@@ -547,16 +491,2 @@ | ||
/***/ }), | ||
/***/ "hWjl": | ||
/***/ (function(module, exports) { | ||
// removed by extract-text-webpack-plugin | ||
/***/ }), | ||
/***/ "lRwf": | ||
/***/ (function(module, exports) { | ||
module.exports = require("vue"); | ||
/***/ }) | ||
@@ -563,0 +493,0 @@ |
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("vue")); | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["vue-yodify"] = factory(require("vue")); | ||
exports["vue-yodify"] = factory(); | ||
else | ||
root["vue-yodify"] = factory(root["Vue"]); | ||
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_lRwf__) { | ||
root["vue-yodify"] = factory(); | ||
})(typeof self !== 'undefined' ? self : this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -73,3 +73,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = "SrUm"); | ||
/******/ return __webpack_require__(__webpack_require__.s = 0); | ||
/******/ }) | ||
@@ -79,3 +79,11 @@ /************************************************************************/ | ||
/***/ "4SgS": | ||
/***/ 0: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = __webpack_require__("97+o"); | ||
/***/ }), | ||
/***/ "7rNI": | ||
/***/ (function(module, exports) { | ||
@@ -87,3 +95,3 @@ | ||
/***/ "SrUm": | ||
/***/ "97+o": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -94,7 +102,3 @@ | ||
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} | ||
var external___commonjs___vue___commonjs2___vue___root___Vue__ = __webpack_require__("lRwf"); | ||
var external___commonjs___vue___commonjs2___vue___root___Vue___default = /*#__PURE__*/__webpack_require__.n(external___commonjs___vue___commonjs2___vue___root___Vue__); | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/vue-yodify/node_modules/.cache/cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./example/App.vue | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/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 | ||
// | ||
@@ -109,7 +113,21 @@ // | ||
// | ||
/* harmony default export */ var App = ({ | ||
name: 'app' | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
/* harmony default export */ var BellIcon = ({ | ||
name: 'BellIcon', | ||
props: { | ||
type: { | ||
required: true, | ||
type: String | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-45c7aa94","hasScoped":false,"optionsId":"0","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./example/App.vue | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-yodify'),_c('div',{attrs:{"id":"example"}},[_c('button',{on:{"click":function($event){_vm.$yodify({text: 'Wow', type: 'success'})}}},[_vm._v("Yodify")])])],1)} | ||
// 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 | ||
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"}})])])} | ||
var staticRenderFns = [] | ||
@@ -220,5 +238,5 @@ | ||
// CONCATENATED MODULE: ./example/App.vue | ||
// CONCATENATED MODULE: ./source/components/BellIcon.vue | ||
function injectStyle (context) { | ||
__webpack_require__("mTNh") | ||
__webpack_require__("JgWr") | ||
} | ||
@@ -235,3 +253,3 @@ /* script */ | ||
/* scopeId */ | ||
var __vue_scopeId__ = null | ||
var __vue_scopeId__ = "data-v-3ac2c12c" | ||
/* moduleIdentifier (server only) */ | ||
@@ -241,3 +259,3 @@ var __vue_module_identifier__ = null | ||
var Component = normalizeComponent( | ||
App, | ||
BellIcon, | ||
render, | ||
@@ -251,65 +269,4 @@ staticRenderFns, | ||
/* harmony default export */ var example_App = (Component.exports); | ||
/* harmony default export */ var components_BellIcon = (Component.exports); | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/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 | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
/* harmony default export */ var BellIcon = ({ | ||
name: 'BellIcon', | ||
props: { | ||
type: { | ||
required: true, | ||
type: String | ||
} | ||
} | ||
}); | ||
// 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 BellIcon_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"}})])])} | ||
var BellIcon_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./source/components/BellIcon.vue | ||
function BellIcon_injectStyle (context) { | ||
__webpack_require__("ZO80") | ||
} | ||
/* script */ | ||
/* template */ | ||
/* template functional */ | ||
var BellIcon___vue_template_functional__ = false | ||
/* styles */ | ||
var BellIcon___vue_styles__ = BellIcon_injectStyle | ||
/* scopeId */ | ||
var BellIcon___vue_scopeId__ = "data-v-3ac2c12c" | ||
/* moduleIdentifier (server only) */ | ||
var BellIcon___vue_module_identifier__ = null | ||
var BellIcon_Component = normalizeComponent( | ||
BellIcon, | ||
BellIcon_render, | ||
BellIcon_staticRenderFns, | ||
BellIcon___vue_template_functional__, | ||
BellIcon___vue_styles__, | ||
BellIcon___vue_scopeId__, | ||
BellIcon___vue_module_identifier__ | ||
) | ||
/* harmony default export */ var components_BellIcon = (BellIcon_Component.exports); | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/Users/dodekeract/Code/@3yourmind/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 | ||
@@ -330,3 +287,3 @@ // | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-dea79338","hasScoped":false,"optionsId":"0","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-dea79338","hasScoped":false,"optionsId":"2","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:{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24"},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"}})])} | ||
@@ -462,3 +419,3 @@ var CloseIcon_staticRenderFns = [] | ||
}); | ||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-2139ba61","hasScoped":true,"optionsId":"0","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-2139ba61","hasScoped":true,"optionsId":"2","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)}))} | ||
@@ -469,3 +426,3 @@ var VueYodify_staticRenderFns = [] | ||
function VueYodify_injectStyle (context) { | ||
__webpack_require__("4SgS") | ||
__webpack_require__("7rNI") | ||
} | ||
@@ -502,3 +459,3 @@ /* script */ | ||
/* harmony default export */ var source = ({ | ||
/* harmony default export */ var source = __webpack_exports__["default"] = ({ | ||
install(Vue) { | ||
@@ -534,19 +491,6 @@ if (this.installed) return; | ||
// CONCATENATED MODULE: ./example/main.js | ||
external___commonjs___vue___commonjs2___vue___root___Vue___default.a.config.productionTip = false; | ||
external___commonjs___vue___commonjs2___vue___root___Vue___default.a.use(source); | ||
new external___commonjs___vue___commonjs2___vue___root___Vue___default.a({ | ||
render: h => h(example_App), | ||
}).$mount('#app'); | ||
/***/ }), | ||
/***/ "ZO80": | ||
/***/ "JgWr": | ||
/***/ (function(module, exports) { | ||
@@ -556,16 +500,2 @@ | ||
/***/ }), | ||
/***/ "lRwf": | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_lRwf__; | ||
/***/ }), | ||
/***/ "mTNh": | ||
/***/ (function(module, exports) { | ||
// removed by extract-text-webpack-plugin | ||
/***/ }) | ||
@@ -572,0 +502,0 @@ |
@@ -1,2 +0,2 @@ | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-yodify"]=e(require("vue")):t["vue-yodify"]=e(t["Vue"])})("undefined"!==typeof self?self:this,function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s="SrUm")}({"6E4T":function(t,e){},"7rNI":function(t,e){},JgWr:function(t,e){},SrUm:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("lRwf"),i=n.n(o),r={name:"app"},s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("vue-yodify"),n("div",{attrs:{id:"example"}},[n("button",{on:{click:function(e){t.$yodify({text:"Wow",type:"success"})}}},[t._v("Yodify")])])],1)},c=[];function u(t,e,n,o,i,r,s,c){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var f,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId=r),s?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=f):i&&(f=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),f)if(l.functional){l._injectStyles=f;var d=l.render;l.render=function(t,e){return f.call(e),d(t,e)}}else{var a=l.beforeCreate;l.beforeCreate=a?[].concat(a,f):[f]}return{exports:t,options:l}}function f(t){n("6E4T")}var l=!1,d=f,a=null,p=null,v=u(r,s,c,l,d,a,p),y=v.exports,_={name:"BellIcon",props:{type:{required:!0,type:String}}},h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-yodify__icon",class:"vue-yodify__icon--"+t.type},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#ffffff"}},[n("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"}})])])},m=[];function C(t){n("JgWr")}var x=!1,g=C,w="data-v-3ac2c12c",$=null,b=u(_,h,m,x,g,w,$),L=b.exports,E={name:"CloseIcon",methods:{click:function(){this.$emit("click")}}},j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},on:{click:t.click}},[n("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"}})])},I=[],N=!1,S=null,q=null,M=null,T=u(E,j,I,N,S,q,M),k=T.exports;const R=t=>({events:new t}),B=(t=64)=>{const e=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),n=[];for(let o=0;o<t;o+=16)n.push(e());return n.join("")},O=({id:t})=>({id:e})=>t!==e;var P={name:"VueYodify",components:{BellIcon:L,CloseIcon:k},data:function(){return{queue:[]}},methods:{addNotification:function(t){var e=this,n=t.id,o=void 0===n?B():n,i=t.text,r=t.type,s=t.duration,c=void 0===s?3e3:s;this.queue.push({id:o,text:i,type:r}),window.setTimeout(function(){return e.deleteNotification(o)},c)},deleteNotification:function(t){this.queue=this.queue.filter(O({id:t}))},iconClass:function(t){return"vue-yodify__icon vue-yodify__icon--".concat(t)}},mounted:function(){this.registerEventBridge()}},U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-yodify"},t._l(t.queue,function(e){return n("div",{key:e.id,staticClass:"vue-yodify__notification"},[n("BellIcon",{attrs:{type:e.type}}),n("div",{staticClass:"vue-yodify__content"},[n("div",{domProps:{textContent:t._s(e.text)}})]),n("div",{staticClass:"vue-yodify__close"},[n("CloseIcon",{on:{click:function(n){t.deleteNotification(e.id)}}})],1)],1)}))},V=[];function W(t){n("7rNI")}var Z=!1,J=W,X="data-v-2139ba61",Y=null,z=u(P,U,V,Z,J,X,Y),F=z.exports,A={install(t){if(this.installed)return;this.installed=!0;const e=R(t);F.methods.registerEventBridge=function(){e.events.$on("vue-yodify",this.addNotification)},t.component("vue-yodify",F),t.prototype.$yodify=(({duration:t=3e3,text:n,type:o="success"})=>{e.events.$emit("vue-yodify",{text:n,type:o,duration:t})})}};i.a.config.productionTip=!1,i.a.use(A),new i.a({render:t=>t(y)}).$mount("#app")},lRwf:function(e,n){e.exports=t}})["default"]}); | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-yodify"]=e():t["vue-yodify"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s=0)}({0:function(t,e,n){t.exports=n("97+o")},"97+o":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"BellIcon",props:{type:{required:!0,type:String}}},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-yodify__icon",class:"vue-yodify__icon--"+t.type},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#ffffff"}},[n("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 s(t,e,n,o,i,r,s,c){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var f,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId=r),s?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=f):i&&(f=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),f)if(l.functional){l._injectStyles=f;var d=l.render;l.render=function(t,e){return f.call(e),d(t,e)}}else{var a=l.beforeCreate;l.beforeCreate=a?[].concat(a,f):[f]}return{exports:t,options:l}}function c(t){n("hWjl")}var u=!1,f=c,l="data-v-3ac2c12c",d=null,a=s(o,i,r,u,f,l,d),p=a.exports,v={name:"CloseIcon",methods:{click:function(){this.$emit("click")}}},y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},on:{click:t.click}},[n("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=!1,C=null,m=null,x=null,g=s(v,y,_,h,C,m,x),w=g.exports;const b=t=>({events:new t}),L=(t=64)=>{const e=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),n=[];for(let o=0;o<t;o+=16)n.push(e());return n.join("")},$=({id:t})=>({id:e})=>t!==e;var j={name:"VueYodify",components:{BellIcon:p,CloseIcon:w},data:function(){return{queue:[]}},methods:{addNotification:function(t){var e=this,n=t.id,o=void 0===n?L():n,i=t.text,r=t.type,s=t.duration,c=void 0===s?3e3:s;this.queue.push({id:o,text:i,type:r}),window.setTimeout(function(){return e.deleteNotification(o)},c)},deleteNotification:function(t){this.queue=this.queue.filter($({id:t}))},iconClass:function(t){return"vue-yodify__icon vue-yodify__icon--".concat(t)}},mounted:function(){this.registerEventBridge()}},E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-yodify"},t._l(t.queue,function(e){return n("div",{key:e.id,staticClass:"vue-yodify__notification"},[n("BellIcon",{attrs:{type:e.type}}),n("div",{staticClass:"vue-yodify__content"},[n("div",{domProps:{textContent:t._s(e.text)}})]),n("div",{staticClass:"vue-yodify__close"},[n("CloseIcon",{on:{click:function(n){t.deleteNotification(e.id)}}})],1)],1)}))},k=[];function M(t){n("J8kJ")}var I=!1,N=M,S="data-v-2139ba61",q=null,B=s(j,E,k,I,N,S,q),O=B.exports;e["default"]={install(t){if(this.installed)return;this.installed=!0;const e=b(t);O.methods.registerEventBridge=function(){e.events.$on("vue-yodify",this.addNotification)},t.component("vue-yodify",O),t.prototype.$yodify=(({duration:t=3e3,text:n,type:o="success"})=>{e.events.$emit("vue-yodify",{text:n,type:o,duration:t})})}}},J8kJ:function(t,e){},hWjl:function(t,e){}})["default"]}); | ||
//# sourceMappingURL=vue-yodify.umd.min.js.map |
@@ -56,3 +56,4 @@ { | ||
"scripts": { | ||
"build": "vue-cli-service build --target lib --name vue-yodify source", | ||
"build": | ||
"YODIFY_BUILD_LIBRARY=1 vue-cli-service build --target lib --name vue-yodify source/index.js", | ||
"lint": "vue-cli-service lint", | ||
@@ -63,3 +64,3 @@ "precommit": "precise-commits && npm run lint", | ||
}, | ||
"version": "0.2.1" | ||
"version": "0.2.2" | ||
} |
@@ -72,3 +72,3 @@ # vue-yodify by <a href="https://www.3yourmind.com/">3YOURMIND</a> | ||
<th align="center"><a href="https://github.com/ostoc"><img src="https://avatars3.githubusercontent.com/u/3025708?v=4" width="100px;" style="max-width:100%;"><br><sub>ostoc</sub></a><br><p>Contributions: 4</p></th> | ||
<th align="center"><a href="https://github.com/dodekeract"><img src="https://avatars0.githubusercontent.com/u/1133858?v=4" width="100px;" style="max-width:100%;"><br><sub>dodekeract</sub></a><br><p>Contributions: 2</p></th> | ||
<th align="center"><a href="https://github.com/dodekeract"><img src="https://avatars0.githubusercontent.com/u/1133858?v=4" width="100px;" style="max-width:100%;"><br><sub>dodekeract</sub></a><br><p>Contributions: 6</p></th> | ||
</thead></table> | ||
@@ -75,0 +75,0 @@ |
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
127073
881