vue-feather
Advanced tools
Comparing version
@@ -1,23 +0,35 @@ | ||
# Changelog | ||
# [1.1.0](https://github.com/fengyuanchen/vue-feather/compare/v1.0.1...v1.1.0) (2020-10-31) | ||
## 1.0.1 (Jun 6, 2020) | ||
- Rebuild with the latest `vue-loader` for better compatibility (#2). | ||
### Performance Improvements | ||
## 1.0.0 (Jan 26, 2019) | ||
* switch to functional component ([#4](https://github.com/fengyuanchen/vue-feather/issues/4)) ([38c34f1](https://github.com/fengyuanchen/vue-feather/commit/38c34f1316c561098d1b4bb26c9e455fc506991a)) | ||
- Support to use as a Vue plugin: `Vue.use(VueFeather)`. | ||
- Support to use as a Vue component: `Vue.component(VueFeather.name, VueFeather)`. | ||
- Register the component automatically once loaded in the browser. | ||
## 0.2.1 (Aug 5, 2018) | ||
- Use Sass instead of PostCSS. | ||
## [1.0.1](https://github.com/fengyuanchen/vue-feather/compare/v1.0.0...v1.0.1) (2020-06-06) | ||
## 0.2.0 (Mar 25, 2018) | ||
- Rename element class name from `vue-feather` to `feather`. | ||
## 0.1.0 (Mar 20, 2018) | ||
# [1.0.0](https://github.com/fengyuanchen/vue-feather/compare/v0.2.1...v1.0.0) (2019-01-26) | ||
- Support 10 props: `animation`, `animation-speed`, `fill`, `size`, `stroke`, `stroke-linecap`, `stroke-linejoin`, `stroke-width`, `tag` and `type`. | ||
### Features | ||
* register as a Vue plugin ([c03c9ca](https://github.com/fengyuanchen/vue-feather/commit/c03c9ca6bb71a9b5c96debddfb46343b101a5e90)) | ||
* register the component automatically once loaded ([f538b12](https://github.com/fengyuanchen/vue-feather/commit/f538b12e67670fa34868fb8e10676f054b16dd11)) | ||
## [0.2.1](https://github.com/fengyuanchen/vue-feather/compare/v0.2.0...v0.2.1) (2018-08-05) | ||
# [0.2.0](https://github.com/fengyuanchen/vue-feather/compare/v0.1.0...v0.2.0) (2018-03-25) | ||
# 0.1.0 (2018-03-20) | ||
/*! | ||
* vue-feather v1.0.1 | ||
* vue-feather v1.1.0 | ||
* https://fengyuanchen.github.io/vue-feather | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: 2020-06-06T12:10:30.203Z | ||
* Date: 2020-10-31T09:22:24.378Z | ||
*/ | ||
@@ -14,6 +14,8 @@ | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var feather = require('feather-icons'); | ||
var feather = _interopDefault(require('feather-icons')); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var feather__default = /*#__PURE__*/_interopDefaultLegacy(feather); | ||
function _defineProperty(obj, key, value) { | ||
@@ -70,2 +72,3 @@ if (key in obj) { | ||
name: 'Feather', | ||
functional: true, | ||
props: { | ||
@@ -112,3 +115,3 @@ animation: { | ||
validator: function validator(type) { | ||
if (!feather.icons[type]) { | ||
if (!feather__default['default'].icons[type]) { | ||
throw new Error("\"".concat(type, "\" is not an available icon type.")); | ||
@@ -121,11 +124,13 @@ } | ||
}, | ||
render: function render(createElement) { | ||
render: function render(createElement, _ref) { | ||
var _class; | ||
var animation = this.animation, | ||
animationSpeed = this.animationSpeed, | ||
size = this.size, | ||
type = this.type; | ||
var icon = feather.icons[type]; | ||
return createElement(this.tag, { | ||
var listeners = _ref.listeners, | ||
props = _ref.props; | ||
var animation = props.animation, | ||
animationSpeed = props.animationSpeed, | ||
size = props.size, | ||
type = props.type; | ||
var icon = feather__default['default'].icons[type]; | ||
return createElement(props.tag, { | ||
attrs: { | ||
@@ -139,11 +144,11 @@ 'data-name': type, | ||
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class), | ||
on: this.$listeners | ||
on: listeners | ||
}, [icon ? createElement('svg', { | ||
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, { | ||
fill: this.fill, | ||
fill: props.fill, | ||
height: size, | ||
stroke: this.stroke, | ||
'stroke-linecap': this.strokeLinecap, | ||
'stroke-linejoin': this.strokeLinejoin, | ||
'stroke-width': this.strokeWidth, | ||
stroke: props.stroke, | ||
'stroke-linecap': props.strokeLinecap, | ||
'stroke-linejoin': props.strokeLinejoin, | ||
'stroke-width': props.strokeWidth, | ||
width: size | ||
@@ -305,4 +310,4 @@ }), | ||
if (!inject) return; | ||
inject("data-v-07452373_0", { | ||
source: "@keyframes feather--spin-data-v-07452373{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-07452373]{display:inline-block;overflow:hidden}.feather--spin[data-v-07452373]{animation:feather--spin-data-v-07452373 2s linear infinite}.feather--pulse[data-v-07452373]{animation:feather--spin-data-v-07452373 2s infinite steps(8)}.feather--slow[data-v-07452373]{animation-duration:3s}.feather--fast[data-v-07452373]{animation-duration:1s}.feather__content[data-v-07452373]{display:block;height:inherit;width:inherit}", | ||
inject("data-v-6e255ebb_0", { | ||
source: "@keyframes feather--spin-data-v-6e255ebb{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-6e255ebb]{display:inline-block;overflow:hidden}.feather--spin[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s linear infinite}.feather--pulse[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s infinite steps(8)}.feather--slow[data-v-6e255ebb]{animation-duration:3s}.feather--fast[data-v-6e255ebb]{animation-duration:1s}.feather__content[data-v-6e255ebb]{display:block;height:inherit;width:inherit}", | ||
map: undefined, | ||
@@ -315,3 +320,3 @@ media: undefined | ||
var __vue_scope_id__ = "data-v-07452373"; | ||
var __vue_scope_id__ = "data-v-6e255ebb"; | ||
/* module identifier */ | ||
@@ -318,0 +323,0 @@ |
/*! | ||
* vue-feather v1.0.1 | ||
* vue-feather v1.1.0 | ||
* https://fengyuanchen.github.io/vue-feather | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: 2020-06-06T12:10:30.203Z | ||
* Date: 2020-10-31T09:22:24.378Z | ||
*/ | ||
@@ -65,2 +65,3 @@ | ||
name: 'Feather', | ||
functional: true, | ||
props: { | ||
@@ -115,11 +116,13 @@ animation: { | ||
}, | ||
render: function render(createElement) { | ||
render: function render(createElement, _ref) { | ||
var _class; | ||
var animation = this.animation, | ||
animationSpeed = this.animationSpeed, | ||
size = this.size, | ||
type = this.type; | ||
var listeners = _ref.listeners, | ||
props = _ref.props; | ||
var animation = props.animation, | ||
animationSpeed = props.animationSpeed, | ||
size = props.size, | ||
type = props.type; | ||
var icon = feather.icons[type]; | ||
return createElement(this.tag, { | ||
return createElement(props.tag, { | ||
attrs: { | ||
@@ -133,11 +136,11 @@ 'data-name': type, | ||
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class), | ||
on: this.$listeners | ||
on: listeners | ||
}, [icon ? createElement('svg', { | ||
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, { | ||
fill: this.fill, | ||
fill: props.fill, | ||
height: size, | ||
stroke: this.stroke, | ||
'stroke-linecap': this.strokeLinecap, | ||
'stroke-linejoin': this.strokeLinejoin, | ||
'stroke-width': this.strokeWidth, | ||
stroke: props.stroke, | ||
'stroke-linecap': props.strokeLinecap, | ||
'stroke-linejoin': props.strokeLinejoin, | ||
'stroke-width': props.strokeWidth, | ||
width: size | ||
@@ -299,4 +302,4 @@ }), | ||
if (!inject) return; | ||
inject("data-v-07452373_0", { | ||
source: "@keyframes feather--spin-data-v-07452373{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-07452373]{display:inline-block;overflow:hidden}.feather--spin[data-v-07452373]{animation:feather--spin-data-v-07452373 2s linear infinite}.feather--pulse[data-v-07452373]{animation:feather--spin-data-v-07452373 2s infinite steps(8)}.feather--slow[data-v-07452373]{animation-duration:3s}.feather--fast[data-v-07452373]{animation-duration:1s}.feather__content[data-v-07452373]{display:block;height:inherit;width:inherit}", | ||
inject("data-v-6e255ebb_0", { | ||
source: "@keyframes feather--spin-data-v-6e255ebb{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-6e255ebb]{display:inline-block;overflow:hidden}.feather--spin[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s linear infinite}.feather--pulse[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s infinite steps(8)}.feather--slow[data-v-6e255ebb]{animation-duration:3s}.feather--fast[data-v-6e255ebb]{animation-duration:1s}.feather__content[data-v-6e255ebb]{display:block;height:inherit;width:inherit}", | ||
map: undefined, | ||
@@ -309,3 +312,3 @@ media: undefined | ||
var __vue_scope_id__ = "data-v-07452373"; | ||
var __vue_scope_id__ = "data-v-6e255ebb"; | ||
/* module identifier */ | ||
@@ -312,0 +315,0 @@ |
/*! | ||
* vue-feather v1.0.1 | ||
* vue-feather v1.1.0 | ||
* https://fengyuanchen.github.io/vue-feather | ||
@@ -8,3 +8,3 @@ * | ||
* | ||
* Date: 2020-06-06T12:10:30.203Z | ||
* Date: 2020-10-31T09:22:24.378Z | ||
*/ | ||
@@ -15,7 +15,9 @@ | ||
typeof define === 'function' && define.amd ? define(['feather-icons'], factory) : | ||
(global = global || self, global.VueFeather = factory(global.feather)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.VueFeather = factory(global.feather)); | ||
}(this, (function (feather) { 'use strict'; | ||
feather = feather && Object.prototype.hasOwnProperty.call(feather, 'default') ? feather['default'] : feather; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var feather__default = /*#__PURE__*/_interopDefaultLegacy(feather); | ||
function _defineProperty(obj, key, value) { | ||
@@ -72,2 +74,3 @@ if (key in obj) { | ||
name: 'Feather', | ||
functional: true, | ||
props: { | ||
@@ -114,3 +117,3 @@ animation: { | ||
validator: function validator(type) { | ||
if (!feather.icons[type]) { | ||
if (!feather__default['default'].icons[type]) { | ||
throw new Error("\"".concat(type, "\" is not an available icon type.")); | ||
@@ -123,11 +126,13 @@ } | ||
}, | ||
render: function render(createElement) { | ||
render: function render(createElement, _ref) { | ||
var _class; | ||
var animation = this.animation, | ||
animationSpeed = this.animationSpeed, | ||
size = this.size, | ||
type = this.type; | ||
var icon = feather.icons[type]; | ||
return createElement(this.tag, { | ||
var listeners = _ref.listeners, | ||
props = _ref.props; | ||
var animation = props.animation, | ||
animationSpeed = props.animationSpeed, | ||
size = props.size, | ||
type = props.type; | ||
var icon = feather__default['default'].icons[type]; | ||
return createElement(props.tag, { | ||
attrs: { | ||
@@ -141,11 +146,11 @@ 'data-name': type, | ||
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class), | ||
on: this.$listeners | ||
on: listeners | ||
}, [icon ? createElement('svg', { | ||
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, { | ||
fill: this.fill, | ||
fill: props.fill, | ||
height: size, | ||
stroke: this.stroke, | ||
'stroke-linecap': this.strokeLinecap, | ||
'stroke-linejoin': this.strokeLinejoin, | ||
'stroke-width': this.strokeWidth, | ||
stroke: props.stroke, | ||
'stroke-linecap': props.strokeLinecap, | ||
'stroke-linejoin': props.strokeLinejoin, | ||
'stroke-width': props.strokeWidth, | ||
width: size | ||
@@ -307,4 +312,4 @@ }), | ||
if (!inject) return; | ||
inject("data-v-07452373_0", { | ||
source: "@keyframes feather--spin-data-v-07452373{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-07452373]{display:inline-block;overflow:hidden}.feather--spin[data-v-07452373]{animation:feather--spin-data-v-07452373 2s linear infinite}.feather--pulse[data-v-07452373]{animation:feather--spin-data-v-07452373 2s infinite steps(8)}.feather--slow[data-v-07452373]{animation-duration:3s}.feather--fast[data-v-07452373]{animation-duration:1s}.feather__content[data-v-07452373]{display:block;height:inherit;width:inherit}", | ||
inject("data-v-6e255ebb_0", { | ||
source: "@keyframes feather--spin-data-v-6e255ebb{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-6e255ebb]{display:inline-block;overflow:hidden}.feather--spin[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s linear infinite}.feather--pulse[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s infinite steps(8)}.feather--slow[data-v-6e255ebb]{animation-duration:3s}.feather--fast[data-v-6e255ebb]{animation-duration:1s}.feather__content[data-v-6e255ebb]{display:block;height:inherit;width:inherit}", | ||
map: undefined, | ||
@@ -317,3 +322,3 @@ media: undefined | ||
var __vue_scope_id__ = "data-v-07452373"; | ||
var __vue_scope_id__ = "data-v-6e255ebb"; | ||
/* module identifier */ | ||
@@ -320,0 +325,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! vue-feather v1.0.1 | (c) 2018-present Chen Fengyuan | MIT */ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("feather-icons")):"function"==typeof define&&define.amd?define(["feather-icons"],t):(e=e||self).VueFeather=t(e.feather)}(this,function(s){"use strict";function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){d(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}s=s&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s;var e={name:"Feather",props:{animation:{type:String,default:void 0},animationSpeed:{type:String,default:void 0},fill:{type:String,default:"none"},size:{type:[Number,String],default:24},stroke:{type:String,default:"currentColor"},strokeLinecap:{type:String,default:"round"},strokeLinejoin:{type:String,default:"round"},strokeWidth:{type:[Number,String],default:2},tag:{type:String,default:"i"},type:{type:String,required:!0,validator:function(e){if(!s.icons[e])throw new Error('"'.concat(e,'" is not an available icon type.'));return!0}}},render:function(e){var t,n=this.animation,r=this.animationSpeed,i=this.size,a=this.type,o=s.icons[a];return e(this.tag,{attrs:{"data-name":a,"data-tags":o?o.tags:"","data-type":a},class:(d(t={feather:!0},"feather--".concat(a),a),d(t,"feather--".concat(n),n),d(t,"feather--".concat(r),r),t),on:this.$listeners},[o?e("svg",{attrs:c(c({},o.attrs),{},{fill:this.fill,height:i,stroke:this.stroke,"stroke-linecap":this.strokeLinecap,"stroke-linejoin":this.strokeLinejoin,"stroke-width":this.strokeWidth,width:i}),class:[o.attrs.class,"feather__content"],domProps:{innerHTML:o.contents}}):""])}};function t(e,t,n,r,i,a,o,s,d,c){"boolean"!=typeof o&&(d=s,s=o,o=!1);var l,f,p,u="function"==typeof n?n.options:n;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):t&&(l=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),l&&(u.functional?(f=u.render,u.render=function(e,t){return l.call(t),f(e,t)}):(p=u.beforeCreate,u.beforeCreate=p?[].concat(p,l):[l])),n}var l,f="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function n(e){return function(e,t){var n=f?t.media||"default":e,r=p[n]||(p[n]={ids:new Set,styles:[]});{var i,a,o,s;r.ids.has(e)||(r.ids.add(e),i=t.source,t.map&&(i+="\n/*# sourceURL="+t.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===l&&(l=document.head||document.getElementsByTagName("head")[0]),l.appendChild(r.element)),"styleSheet"in r.element?(r.styles.push(i),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n")):(a=r.ids.size-1,o=document.createTextNode(i),(s=r.element.childNodes)[a]&&r.element.removeChild(s[a]),s.length?r.element.insertBefore(o,s[a]):r.element.appendChild(o)))}}}var p={};var i=t({},function(e){e&&e("data-v-07452373_0",{source:"@keyframes feather--spin-data-v-07452373{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-07452373]{display:inline-block;overflow:hidden}.feather--spin[data-v-07452373]{animation:feather--spin-data-v-07452373 2s linear infinite}.feather--pulse[data-v-07452373]{animation:feather--spin-data-v-07452373 2s infinite steps(8)}.feather--slow[data-v-07452373]{animation-duration:3s}.feather--fast[data-v-07452373]{animation-duration:1s}.feather__content[data-v-07452373]{display:block;height:inherit;width:inherit}",map:void 0,media:void 0})},e,"data-v-07452373",void 0,void 0,!1,n,void 0,void 0);return i.install=function(e){e.component(i.name,i)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(i),i}); | ||
/*! vue-feather v1.1.0 | (c) 2018-present Chen Fengyuan | MIT */ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("feather-icons")):"function"==typeof define&&define.amd?define(["feather-icons"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VueFeather=t(e.feather)}(this,function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=t(e);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){f(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}e={name:"Feather",functional:!0,props:{animation:{type:String,default:void 0},animationSpeed:{type:String,default:void 0},fill:{type:String,default:"none"},size:{type:[Number,String],default:24},stroke:{type:String,default:"currentColor"},strokeLinecap:{type:String,default:"round"},strokeLinejoin:{type:String,default:"round"},strokeWidth:{type:[Number,String],default:2},tag:{type:String,default:"i"},type:{type:String,required:!0,validator:function(e){if(!c.default.icons[e])throw new Error('"'.concat(e,'" is not an available icon type.'));return!0}}},render:function(e,t){var n=t.listeners,r=t.props,i=r.animation,o=r.animationSpeed,a=r.size,s=r.type,d=c.default.icons[s];return e(r.tag,{attrs:{"data-name":s,"data-tags":d?d.tags:"","data-type":s},class:(f(t={feather:!0},"feather--".concat(s),s),f(t,"feather--".concat(i),i),f(t,"feather--".concat(o),o),t),on:n},[d?e("svg",{attrs:l(l({},d.attrs),{},{fill:r.fill,height:a,stroke:r.stroke,"stroke-linecap":r.strokeLinecap,"stroke-linejoin":r.strokeLinejoin,"stroke-width":r.strokeWidth,width:a}),class:[d.attrs.class,"feather__content"],domProps:{innerHTML:d.contents}}):""])}};function n(e,t,n,r,i,o,a,s,d,c){"boolean"!=typeof a&&(d=s,s=a,a=!1);var f,l,u="function"==typeof n?n.options:n;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),o?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=f):t&&(f=a?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),f&&(u.functional?(l=u.render,u.render=function(e,t){return f.call(t),l(e,t)}):(a=u.beforeCreate,u.beforeCreate=a?[].concat(a,f):[f])),n}var i,o="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function a(e){return function(e,t){return n=e,r=t,e=o?r.media||"default":n,void((t=s[e]||(s[e]={ids:new Set,styles:[]})).ids.has(n)||(t.ids.add(n),e=r.source,r.map&&(e+="\n/*# sourceURL="+r.map.sources[0]+" */",e+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r.map))))+" */"),t.element||(t.element=document.createElement("style"),t.element.type="text/css",r.media&&t.element.setAttribute("media",r.media),void 0===i&&(i=document.head||document.getElementsByTagName("head")[0]),i.appendChild(t.element)),"styleSheet"in t.element?(t.styles.push(e),t.element.styleSheet.cssText=t.styles.filter(Boolean).join("\n")):(n=t.ids.size-1,r=document.createTextNode(e),(e=t.element.childNodes)[n]&&t.element.removeChild(e[n]),e.length?t.element.insertBefore(r,e[n]):t.element.appendChild(r))));var n,r}}var s={};var d=n({},function(e){e&&e("data-v-6e255ebb_0",{source:"@keyframes feather--spin-data-v-6e255ebb{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-6e255ebb]{display:inline-block;overflow:hidden}.feather--spin[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s linear infinite}.feather--pulse[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s infinite steps(8)}.feather--slow[data-v-6e255ebb]{animation-duration:3s}.feather--fast[data-v-6e255ebb]{animation-duration:1s}.feather__content[data-v-6e255ebb]{display:block;height:inherit;width:inherit}",map:void 0,media:void 0})},e,"data-v-6e255ebb",void 0,void 0,!1,a,void 0,void 0);return d.install=function(e){e.component(d.name,d)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(d),d}); |
{ | ||
"name": "vue-feather", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Feather component for Vue.js.", | ||
@@ -15,2 +15,3 @@ "main": "dist/vue-feather.common.js", | ||
"build:docs": "webpack --mode production", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", | ||
"clear": "del-cli dist", | ||
@@ -25,3 +26,3 @@ "clear:docs": "del-cli docs", | ||
"prebuild": "npm run clear", | ||
"release": "npm run lint && npm run build && npm run compress && npm run deploy && npm test", | ||
"release": "npm run lint && npm run build && npm run compress && npm run deploy && npm test && npm run changelog", | ||
"start": "npm run dev", | ||
@@ -55,21 +56,22 @@ "test": "karma start" | ||
"devDependencies": { | ||
"@babel/core": "^7.10.2", | ||
"@babel/preset-env": "^7.10.2", | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"babel-loader": "^8.1.0", | ||
"chai": "^4.2.0", | ||
"change-case": "^4.1.1", | ||
"conventional-changelog-cli": "^2.1.0", | ||
"create-banner": "^1.0.0", | ||
"css-loader": "^3.5.3", | ||
"css-loader": "^3.6.0", | ||
"del-cli": "^3.0.1", | ||
"eslint": "^7.2.0", | ||
"eslint-config-airbnb-base": "^14.1.0", | ||
"eslint-plugin-html": "^6.0.2", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"eslint": "^7.12.1", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-plugin-html": "^6.1.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-vue": "^7.1.0", | ||
"feather-icons": "^4.24.1", | ||
"html-webpack-plugin": "^4.3.0", | ||
"husky": "^4.2.5", | ||
"karma": "^5.0.9", | ||
"html-webpack-plugin": "^4.5.0", | ||
"husky": "^4.3.0", | ||
"karma": "^5.2.3", | ||
"karma-chai": "^0.1.0", | ||
@@ -80,7 +82,7 @@ "karma-chrome-launcher": "^3.1.0", | ||
"karma-webpack": "^4.0.2", | ||
"lint-staged": "^10.2.9", | ||
"lint-staged": "^10.5.0", | ||
"markdown-to-vue-loader": "^2.0.0", | ||
"mocha": "^7.2.0", | ||
"puppeteer": "^3.3.0", | ||
"rollup": "^2.13.1", | ||
"mocha": "^8.2.0", | ||
"puppeteer": "^5.4.1", | ||
"rollup": "^2.32.1", | ||
"rollup-plugin-babel": "^4.4.0", | ||
@@ -90,21 +92,21 @@ "rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-vue": "^5.1.9", | ||
"sass": "^1.26.8", | ||
"sass-loader": "^8.0.2", | ||
"stylelint": "^13.6.0", | ||
"sass": "^1.28.0", | ||
"sass-loader": "^10.0.4", | ||
"stylelint": "^13.7.2", | ||
"stylelint-config-recommended-scss": "^4.2.0", | ||
"stylelint-config-standard": "^20.0.0", | ||
"stylelint-order": "^4.1.0", | ||
"stylelint-scss": "^3.17.2", | ||
"uglify-js": "^3.9.4", | ||
"vue": "^2.6.10", | ||
"vue-loader": "^15.9.2", | ||
"stylelint-scss": "^3.18.0", | ||
"uglify-js": "^3.11.4", | ||
"vue": "^2.6.12", | ||
"vue-loader": "^15.9.4", | ||
"vue-style-loader": "^4.1.2", | ||
"vue-template-compiler": "^2.6.11", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.11", | ||
"vue-template-compiler": "^2.6.12", | ||
"webpack": "^4.44.2", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-dev-server": "^3.11.0" | ||
}, | ||
"peerDependencies": { | ||
"feather-icons": "^4.28.0", | ||
"vue": "^2.6.11" | ||
"feather-icons": "^4.0.0", | ||
"vue": "^2.0.0" | ||
}, | ||
@@ -111,0 +113,0 @@ "browserslist": [ |
Sorry, the diff of this file is not supported yet
50504
2.4%16623
48.65%847
1.32%49
2.08%