diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..bc25ad5
Binary files /dev/null and b/.DS_Store differ
diff --git a/.babelrc b/.babelrc
index af0f0c3..14688af 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,3 +1,16 @@
{
- "presets": ["es2015"]
+ "presets": [
+ [
+ "@babel/preset-env"
+ ]
+ ],
+ "plugins": [
+ [
+ "@babel/plugin-transform-runtime",
+ {
+ "regenerator": true,
+ "corejs": 3
+ }
+ ]
+ ]
}
\ No newline at end of file
diff --git a/.eslintrc b/.eslintrc
index 10a3eaf..ffff51a 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,7 +1,15 @@
{
- "extends": "vue",
- "rules": {
- "space-before-function-paren": [2, "never"],
- "indent": ["error",4]
- }
+ "extends": [
+ "plugin:vue/vue3-recommended"
+ ],
+ "rules": {
+ "space-before-function-paren": [
+ 2,
+ "never"
+ ],
+ "indent": [
+ "error",
+ 4
+ ]
+ }
}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 5171c54..9431aed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
+.idea
+/dist/demo.html
node_modules
npm-debug.log
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index b89369f..b43b6ca 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,10 @@
sudo: required
dist: trusty
language: node_js
-node_js:
- - "8"
- - "6"
- - "6.1"
- - "5.11"
+node_js:
+ - 14
+ - 12
+ - 10
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
diff --git a/README.md b/README.md
index c603793..adc3a1e 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
-# Star Rating Component for Vue 2.x
+# Star Rating Component for Vue 2.x / 3.x
[![Build Status](https://travis-ci.org/craigh411/vue-star-rating.svg?branch=master)](https://travis-ci.org/craigh411/vue-star-rating)
[![npm](https://img.shields.io/npm/dt/vue-star-rating.svg)]()
-A simple, highly customisable star rating component for Vue 2.x.
+A simple, highly customisable star rating component for Vue 2.x. / 3.x
> Need more than stars? Check out [vue-rate-it](https://github.com/craigh411/vue-rate-it) with hundreds of different raters built in!
@@ -25,23 +25,24 @@ A simple, highly customisable star rating component for Vue 2.x.
### Via NPM
+
Install via npm:
+#### Vue 2.x Install
+
`npm install vue-star-rating`
-Then require in your project:
+#### Vue 3.x Install
-`var StarRating = require('vue-star-rating');`
+If you're using Vue 3 you will currently need to install the next version of `vue-star-rating`
-or ES6 syntax:
+`npm install vue-star-rating@next`
-`import StarRating from 'vue-star-rating'`
+Then import in to your component:
-Then you can register the component globally:
-
-`Vue.component('star-rating', StarRating);`
+`import StarRating from 'vue-star-rating'`
-Or in your `Vue component`:
+Then you can register the component:
```javascript
components: {
@@ -51,12 +52,16 @@ components: {
You can then use the following markup in your project:
-``
+``
### Via CDN
+
+
You may also include `vue-star-rating` directly in to your webpage via Unpkg. Simply add the following script tag:
+#### Vue 2.x
+
``
You will need to register the component by doing:
@@ -65,31 +70,45 @@ You will need to register the component by doing:
Vue.component('star-rating', VueStarRating.default);
```
-You may also register the component locally via the [components option](https://vuejs.org/v2/guide/components.html#Local-Registration).
+#### Vue 3.x
+
+``
+
+```javascript
+const app = Vue.createApp({
+ // Base component code
+ })
+app.component('star-rating', VueStarRating.default)
+app.mount('#app')
+```
+
## Getting Started
To get started with `vue-star-rating` you will want to sync the rating values between the component and parent, you can then take a look at the props and custom events section of the docs to customise your `star-rating` component.
-### Syncing Rating Values with V-Model for Vue 2.2 +
+### Syncing Rating Values with V-Model
-`vue-star-rating` supports `v-model` when using Vue 2.2 and above, which is the simplest way to keep your ratings in sync:
+`vue-star-rating` supports `v-model`, which is the simplest way to keep your ratings in sync:
+
+#### Vue 2
```HTML
```
-[See this example on JSFiddle](https://jsfiddle.net/craig_h_411/mcz7oha2/)
+[See this Vue 2 example on JSFiddle](https://jsfiddle.net/craig_h_411/mcz7oha2/)
-### Syncing Rating Values when using Vue 2.1.x and below
+#### Vue 3
-If you are using Vue 2.1.x or below the following is the equivelent to the `v-model` example above:
+v-model works on the `rating` prop, so if you're using **Vue 3** you will need to do:
```HTML
-
+
```
-[See this example on JSFiddle](https://jsfiddle.net/craig_h_411/npq5e21h/)
+
+[See this Vue 3 example on JSFiddle](https://jsfiddle.net/craig_h_411/mcz7oha2/)
## Docs
@@ -149,13 +168,14 @@ These props are used to style the star rating component
`vue-star-rating` fires the following custom events, simply use `v-on:event` or the `@` shortand to capture the event.
+### Vue 2 Events
+
| Event | Description | Return Value
| ------------- | ------------- |-----------|
| rating-selected | Returns the rating the user selects via the click event | rating
| current-rating | Returns the rating that the users mouse is currently over | rating
-
-#### Custom Events Example
+#### Vue 2 Example
```HTML
@@ -175,13 +195,40 @@ new Vue({
rating: 0
}
});
-
```
-**Note:** When writing methods to capture custom events, the rating param is automatically passed to the method. If you need to declare methods with multiple paramaters you will need to use `$event` to pass the rating to the method:
+### Vue 3 Events
+
+Some changes have been made to event names in Vue 3
+
+| Event | Description | Return Value
+| ------------- | ------------- |-----------|
+| update:rating | Returns the rating the user selects via the click event | rating
+| hover:rating | Returns the rating that the users mouse is currently over | rating
+
+
+#### Vue 3 Example
```HTML
-
+
+```
+
+Then in your view model:
+
+```javascript
+const app = Vue.createApp({
+ methods: {
+ setRating(rating){
+ this.rating= rating;
+ }
+ },
+ data: {
+ rating: 0
+ }
+})
+app.component('star-rating', VueStarRating.default)
+app.mount('#app')
+
```
### IE9 Support
diff --git a/build/webpack.dev.js b/build/webpack.dev.js
deleted file mode 100644
index 664b5c5..0000000
--- a/build/webpack.dev.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var path = require('path')
-var webpack = require('webpack')
-
-module.exports = {
- entry: {
- 'star-rating': './examples/commonjs/app.js',
- },
- output: {
- path: path.resolve(__dirname, '../dist'),
- publicPath: '/dist/',
- filename: '[name].js'
- },
- module: {
- rules: [{
- test: /\.vue$/,
- loader: 'vue-loader'
- }, {
- test: /\.js$/,
- loader: 'babel-loader',
- exclude: /node_modules/
- }]
- },
- devtool: 'eval-source-map'
-}
diff --git a/build/webpack.dist.js b/build/webpack.dist.js
deleted file mode 100644
index f963a08..0000000
--- a/build/webpack.dist.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var path = require('path')
-var webpack = require('webpack')
-
-module.exports = {
- entry: {
- 'star-rating': './src/index.js',
- },
- output: {
- path: path.resolve(__dirname, '../dist'),
- publicPath: '/dist/',
- filename: '[name].min.js',
- library: 'VueStarRating',
- libraryTarget: 'umd',
- umdNamedDefine: true
- },
- module: {
- rules: [{
- enforce: "pre",
- test: /\.(js|vue)$/,
- exclude: /node_modules/,
- loader: "eslint-loader",
- }, {
- test: /\.vue$/,
- loader: 'vue-loader'
- }, {
- test: /\.js$/,
- loader: 'babel-loader',
- exclude: /node_modules/
- }]
- },
- plugins: [
- new webpack.LoaderOptionsPlugin({
- minimize: true,
- debug: false
- }),
- new webpack.optimize.UglifyJsPlugin({
- sourceMap: true,
- include: /\.min\.js$/,
- compress: {
- warnings: false
- }
- })
- ],
- devtool: 'source-map'
-}
diff --git a/changelog.md b/changelog.md
index e654294..c8acd18 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,7 +1,22 @@
# Change Log
+
+
- Changes before version 1.2.1 not documented (see commit history)
- Project follows [Semantic Versioning](http://semver.org/)
+## Version 2.0.0 - Vue 3!!
+
+- Code updated to Vue 3
+- Examples updated to Vue 3
+- `rating-selected` event renamed to `update:rating` for use witn `v-model`
+- `current-rating` event renamed to `hover:rating` (note: kebab-case is usually preferred, but this format has been chosen for consistency with the update:rating event so rule ignored for star-rating.vue)
+- `vue-cli-service` now being used for builds and dev
+- Deprecated babel-preset-es2015 replaced with "@babel/preset-env" for tests
+- Tests rewritten using vue-test-utils with jest (vue-jest)
+- Eslint now executed via vue cli and lint rules updated with "plugin:vue/vue3-recommended"
+- Update Node versions in travis.yml
+- Various dependencies updated / removed
+
## Version 1.6.1
- Fixes issue where round-start-rating isn't respected when initial value is set via an async call
diff --git a/dist/VueStarRating.common.js b/dist/VueStarRating.common.js
new file mode 100644
index 0000000..de2adc6
--- /dev/null
+++ b/dist/VueStarRating.common.js
@@ -0,0 +1,1206 @@
+module.exports =
+/******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
+/******/ }
+/******/ };
+/******/
+/******/ // define __esModule on exports
+/******/ __webpack_require__.r = function(exports) {
+/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ }
+/******/ Object.defineProperty(exports, '__esModule', { value: true });
+/******/ };
+/******/
+/******/ // create a fake namespace object
+/******/ // mode & 1: value is a module id, require it
+/******/ // mode & 2: merge all properties of value into the ns
+/******/ // mode & 4: return value when already ns object
+/******/ // mode & 8|1: behave like require
+/******/ __webpack_require__.t = function(value, mode) {
+/******/ if(mode & 1) value = __webpack_require__(value);
+/******/ if(mode & 8) return value;
+/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
+/******/ var ns = Object.create(null);
+/******/ __webpack_require__.r(ns);
+/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
+/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
+/******/ return ns;
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = "fb15");
+/******/ })
+/************************************************************************/
+/******/ ({
+
+/***/ "1509":
+/***/ (function(module, exports, __webpack_require__) {
+
+// Imports
+var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("4bad");
+exports = ___CSS_LOADER_API_IMPORT___(false);
+// Module
+exports.push([module.i, ".vue-star-rating-star[data-v-6b2d6caa]{overflow:visible!important}", ""]);
+// Exports
+module.exports = exports;
+
+
+/***/ }),
+
+/***/ "499e":
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+// ESM COMPAT FLAG
+__webpack_require__.r(__webpack_exports__);
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ addStylesClient; });
+
+// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
+/**
+ * Translates the list format produced by css-loader into something
+ * easier to manipulate.
+ */
+function listToStyles (parentId, list) {
+ var styles = []
+ var newStyles = {}
+ for (var i = 0; i < list.length; i++) {
+ var item = list[i]
+ var id = item[0]
+ var css = item[1]
+ var media = item[2]
+ var sourceMap = item[3]
+ var part = {
+ id: parentId + ':' + i,
+ css: css,
+ media: media,
+ sourceMap: sourceMap
+ }
+ if (!newStyles[id]) {
+ styles.push(newStyles[id] = { id: id, parts: [part] })
+ } else {
+ newStyles[id].parts.push(part)
+ }
+ }
+ return styles
+}
+
+// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
+/*
+ MIT License http://www.opensource.org/licenses/mit-license.php
+ Author Tobias Koppers @sokra
+ Modified by Evan You @yyx990803
+*/
+
+
+
+var hasDocument = typeof document !== 'undefined'
+
+if (typeof DEBUG !== 'undefined' && DEBUG) {
+ if (!hasDocument) {
+ 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."
+ ) }
+}
+
+/*
+type StyleObject = {
+ id: number;
+ parts: Array
+}
+
+type StyleObjectPart = {
+ css: string;
+ media: string;
+ sourceMap: ?string
+}
+*/
+
+var stylesInDom = {/*
+ [id: number]: {
+ id: number,
+ refs: number,
+ parts: Array<(obj?: StyleObjectPart) => void>
+ }
+*/}
+
+var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
+var singletonElement = null
+var singletonCounter = 0
+var isProduction = false
+var noop = function () {}
+var options = null
+var ssrIdKey = 'data-vue-ssr-id'
+
+// Force single-tag solution on IE6-9, which has a hard limit on the # of \n","\n \n\n\n\n\n\n","export { default } from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star.vue?vue&type=script&lang=js\"; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star.vue?vue&type=script&lang=js\"","import { render } from \"./star.vue?vue&type=template&id=6b2d6caa&scoped=true&bindings={\\\"fill\\\":\\\"props\\\",\\\"points\\\":\\\"props\\\",\\\"size\\\":\\\"props\\\",\\\"starId\\\":\\\"props\\\",\\\"activeColor\\\":\\\"props\\\",\\\"inactiveColor\\\":\\\"props\\\",\\\"borderColor\\\":\\\"props\\\",\\\"borderWidth\\\":\\\"props\\\",\\\"roundedCorners\\\":\\\"props\\\",\\\"rtl\\\":\\\"props\\\",\\\"glow\\\":\\\"props\\\",\\\"glowColor\\\":\\\"props\\\",\\\"starPoints\\\":\\\"data\\\",\\\"grad\\\":\\\"data\\\",\\\"glowId\\\":\\\"data\\\",\\\"starPointsToString\\\":\\\"options\\\",\\\"gradId\\\":\\\"options\\\",\\\"starSize\\\":\\\"options\\\",\\\"starFill\\\":\\\"options\\\",\\\"border\\\":\\\"options\\\",\\\"getBorderColor\\\":\\\"options\\\",\\\"maxSize\\\":\\\"options\\\",\\\"viewBox\\\":\\\"options\\\",\\\"mouseMoving\\\":\\\"options\\\",\\\"getPosition\\\":\\\"options\\\",\\\"selected\\\":\\\"options\\\",\\\"getRandomId\\\":\\\"options\\\",\\\"calculatePoints\\\":\\\"options\\\",\\\"parseAlphaColor\\\":\\\"options\\\",\\\"getColor\\\":\\\"options\\\",\\\"getOpacity\\\":\\\"options\\\"}\"\nimport script from \"./star.vue?vue&type=script&lang=js\"\nexport * from \"./star.vue?vue&type=script&lang=js\"\n\nimport \"./star.vue?vue&type=style&index=0&id=6b2d6caa&scoped=true&lang=css\"\nscript.render = render\nscript.__scopeId = \"data-v-6b2d6caa\"\n\nexport default script","export { default } from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star-rating.vue?vue&type=script&lang=js\"; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star-rating.vue?vue&type=script&lang=js\"","import { render } from \"./star-rating.vue?vue&type=template&id=2cb4c6ca&scoped=true&bindings={\\\"increment\\\":\\\"props\\\",\\\"rating\\\":\\\"props\\\",\\\"roundStartRating\\\":\\\"props\\\",\\\"activeColor\\\":\\\"props\\\",\\\"inactiveColor\\\":\\\"props\\\",\\\"maxRating\\\":\\\"props\\\",\\\"starPoints\\\":\\\"props\\\",\\\"starSize\\\":\\\"props\\\",\\\"showRating\\\":\\\"props\\\",\\\"readOnly\\\":\\\"props\\\",\\\"textClass\\\":\\\"props\\\",\\\"inline\\\":\\\"props\\\",\\\"borderColor\\\":\\\"props\\\",\\\"borderWidth\\\":\\\"props\\\",\\\"roundedCorners\\\":\\\"props\\\",\\\"padding\\\":\\\"props\\\",\\\"rtl\\\":\\\"props\\\",\\\"fixedPoints\\\":\\\"props\\\",\\\"glow\\\":\\\"props\\\",\\\"glowColor\\\":\\\"props\\\",\\\"clearable\\\":\\\"props\\\",\\\"step\\\":\\\"data\\\",\\\"fillLevel\\\":\\\"data\\\",\\\"currentRating\\\":\\\"data\\\",\\\"selectedRating\\\":\\\"data\\\",\\\"ratingSelected\\\":\\\"data\\\",\\\"formattedRating\\\":\\\"options\\\",\\\"shouldRound\\\":\\\"options\\\",\\\"margin\\\":\\\"options\\\",\\\"setRating\\\":\\\"options\\\",\\\"resetRating\\\":\\\"options\\\",\\\"createStars\\\":\\\"options\\\",\\\"round\\\":\\\"options\\\"}\"\nimport script from \"./star-rating.vue?vue&type=script&lang=js\"\nexport * from \"./star-rating.vue?vue&type=script&lang=js\"\n\nimport \"./star-rating.vue?vue&type=style&index=0&id=2cb4c6ca&scoped=true&lang=css\"\nscript.render = render\nscript.__scopeId = \"data-v-2cb4c6ca\"\n\nexport default script","import StarRating from './star-rating.vue'\n\nexport default StarRating\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/VueStarRating.umd.js b/dist/VueStarRating.umd.js
new file mode 100644
index 0000000..e332938
--- /dev/null
+++ b/dist/VueStarRating.umd.js
@@ -0,0 +1,1216 @@
+(function webpackUniversalModuleDefinition(root, factory) {
+ if(typeof exports === 'object' && typeof module === 'object')
+ module.exports = factory(require("vue"));
+ else if(typeof define === 'function' && define.amd)
+ define([], factory);
+ else if(typeof exports === 'object')
+ exports["VueStarRating"] = factory(require("vue"));
+ else
+ root["VueStarRating"] = factory(root["Vue"]);
+})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {
+return /******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
+/******/ }
+/******/ };
+/******/
+/******/ // define __esModule on exports
+/******/ __webpack_require__.r = function(exports) {
+/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ }
+/******/ Object.defineProperty(exports, '__esModule', { value: true });
+/******/ };
+/******/
+/******/ // create a fake namespace object
+/******/ // mode & 1: value is a module id, require it
+/******/ // mode & 2: merge all properties of value into the ns
+/******/ // mode & 4: return value when already ns object
+/******/ // mode & 8|1: behave like require
+/******/ __webpack_require__.t = function(value, mode) {
+/******/ if(mode & 1) value = __webpack_require__(value);
+/******/ if(mode & 8) return value;
+/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
+/******/ var ns = Object.create(null);
+/******/ __webpack_require__.r(ns);
+/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
+/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
+/******/ return ns;
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = "fb15");
+/******/ })
+/************************************************************************/
+/******/ ({
+
+/***/ "1509":
+/***/ (function(module, exports, __webpack_require__) {
+
+// Imports
+var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("4bad");
+exports = ___CSS_LOADER_API_IMPORT___(false);
+// Module
+exports.push([module.i, ".vue-star-rating-star[data-v-6b2d6caa]{overflow:visible!important}", ""]);
+// Exports
+module.exports = exports;
+
+
+/***/ }),
+
+/***/ "499e":
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+// ESM COMPAT FLAG
+__webpack_require__.r(__webpack_exports__);
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ addStylesClient; });
+
+// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
+/**
+ * Translates the list format produced by css-loader into something
+ * easier to manipulate.
+ */
+function listToStyles (parentId, list) {
+ var styles = []
+ var newStyles = {}
+ for (var i = 0; i < list.length; i++) {
+ var item = list[i]
+ var id = item[0]
+ var css = item[1]
+ var media = item[2]
+ var sourceMap = item[3]
+ var part = {
+ id: parentId + ':' + i,
+ css: css,
+ media: media,
+ sourceMap: sourceMap
+ }
+ if (!newStyles[id]) {
+ styles.push(newStyles[id] = { id: id, parts: [part] })
+ } else {
+ newStyles[id].parts.push(part)
+ }
+ }
+ return styles
+}
+
+// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
+/*
+ MIT License http://www.opensource.org/licenses/mit-license.php
+ Author Tobias Koppers @sokra
+ Modified by Evan You @yyx990803
+*/
+
+
+
+var hasDocument = typeof document !== 'undefined'
+
+if (typeof DEBUG !== 'undefined' && DEBUG) {
+ if (!hasDocument) {
+ 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."
+ ) }
+}
+
+/*
+type StyleObject = {
+ id: number;
+ parts: Array
+}
+
+type StyleObjectPart = {
+ css: string;
+ media: string;
+ sourceMap: ?string
+}
+*/
+
+var stylesInDom = {/*
+ [id: number]: {
+ id: number,
+ refs: number,
+ parts: Array<(obj?: StyleObjectPart) => void>
+ }
+*/}
+
+var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
+var singletonElement = null
+var singletonCounter = 0
+var isProduction = false
+var noop = function () {}
+var options = null
+var ssrIdKey = 'data-vue-ssr-id'
+
+// Force single-tag solution on IE6-9, which has a hard limit on the # of \n","\n \n\n\n\n\n\n","export { default } from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star.vue?vue&type=script&lang=js\"; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star.vue?vue&type=script&lang=js\"","import { render } from \"./star.vue?vue&type=template&id=6b2d6caa&scoped=true&bindings={\\\"fill\\\":\\\"props\\\",\\\"points\\\":\\\"props\\\",\\\"size\\\":\\\"props\\\",\\\"starId\\\":\\\"props\\\",\\\"activeColor\\\":\\\"props\\\",\\\"inactiveColor\\\":\\\"props\\\",\\\"borderColor\\\":\\\"props\\\",\\\"borderWidth\\\":\\\"props\\\",\\\"roundedCorners\\\":\\\"props\\\",\\\"rtl\\\":\\\"props\\\",\\\"glow\\\":\\\"props\\\",\\\"glowColor\\\":\\\"props\\\",\\\"starPoints\\\":\\\"data\\\",\\\"grad\\\":\\\"data\\\",\\\"glowId\\\":\\\"data\\\",\\\"starPointsToString\\\":\\\"options\\\",\\\"gradId\\\":\\\"options\\\",\\\"starSize\\\":\\\"options\\\",\\\"starFill\\\":\\\"options\\\",\\\"border\\\":\\\"options\\\",\\\"getBorderColor\\\":\\\"options\\\",\\\"maxSize\\\":\\\"options\\\",\\\"viewBox\\\":\\\"options\\\",\\\"mouseMoving\\\":\\\"options\\\",\\\"getPosition\\\":\\\"options\\\",\\\"selected\\\":\\\"options\\\",\\\"getRandomId\\\":\\\"options\\\",\\\"calculatePoints\\\":\\\"options\\\",\\\"parseAlphaColor\\\":\\\"options\\\",\\\"getColor\\\":\\\"options\\\",\\\"getOpacity\\\":\\\"options\\\"}\"\nimport script from \"./star.vue?vue&type=script&lang=js\"\nexport * from \"./star.vue?vue&type=script&lang=js\"\n\nimport \"./star.vue?vue&type=style&index=0&id=6b2d6caa&scoped=true&lang=css\"\nscript.render = render\nscript.__scopeId = \"data-v-6b2d6caa\"\n\nexport default script","export { default } from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star-rating.vue?vue&type=script&lang=js\"; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./star-rating.vue?vue&type=script&lang=js\"","import { render } from \"./star-rating.vue?vue&type=template&id=2cb4c6ca&scoped=true&bindings={\\\"increment\\\":\\\"props\\\",\\\"rating\\\":\\\"props\\\",\\\"roundStartRating\\\":\\\"props\\\",\\\"activeColor\\\":\\\"props\\\",\\\"inactiveColor\\\":\\\"props\\\",\\\"maxRating\\\":\\\"props\\\",\\\"starPoints\\\":\\\"props\\\",\\\"starSize\\\":\\\"props\\\",\\\"showRating\\\":\\\"props\\\",\\\"readOnly\\\":\\\"props\\\",\\\"textClass\\\":\\\"props\\\",\\\"inline\\\":\\\"props\\\",\\\"borderColor\\\":\\\"props\\\",\\\"borderWidth\\\":\\\"props\\\",\\\"roundedCorners\\\":\\\"props\\\",\\\"padding\\\":\\\"props\\\",\\\"rtl\\\":\\\"props\\\",\\\"fixedPoints\\\":\\\"props\\\",\\\"glow\\\":\\\"props\\\",\\\"glowColor\\\":\\\"props\\\",\\\"clearable\\\":\\\"props\\\",\\\"step\\\":\\\"data\\\",\\\"fillLevel\\\":\\\"data\\\",\\\"currentRating\\\":\\\"data\\\",\\\"selectedRating\\\":\\\"data\\\",\\\"ratingSelected\\\":\\\"data\\\",\\\"formattedRating\\\":\\\"options\\\",\\\"shouldRound\\\":\\\"options\\\",\\\"margin\\\":\\\"options\\\",\\\"setRating\\\":\\\"options\\\",\\\"resetRating\\\":\\\"options\\\",\\\"createStars\\\":\\\"options\\\",\\\"round\\\":\\\"options\\\"}\"\nimport script from \"./star-rating.vue?vue&type=script&lang=js\"\nexport * from \"./star-rating.vue?vue&type=script&lang=js\"\n\nimport \"./star-rating.vue?vue&type=style&index=0&id=2cb4c6ca&scoped=true&lang=css\"\nscript.render = render\nscript.__scopeId = \"data-v-2cb4c6ca\"\n\nexport default script","import StarRating from './star-rating.vue'\n\nexport default StarRating\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/VueStarRating.umd.min.js b/dist/VueStarRating.umd.min.js
new file mode 100644
index 0000000..27f067e
--- /dev/null
+++ b/dist/VueStarRating.umd.min.js
@@ -0,0 +1,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["VueStarRating"]=e(require("vue")):t["VueStarRating"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({1509:function(t,e,r){var n=r("4bad");e=n(!1),e.push([t.i,".vue-star-rating-star[data-v-6b2d6caa]{overflow:visible!important}",""]),t.exports=e},"499e":function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;ir.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(i=0;i([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=r.replace(n,"$1").trim());for(var p=0;po.resetRating(...t))},[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(r.maxRating,t=>(Object(a["openBlock"])(),Object(a["createBlock"])("span",{key:t,class:[{"vue-star-rating-pointer":!r.readOnly},"vue-star-rating-star"],style:{"margin-right":o.margin+"px"}},[Object(a["createVNode"])(s,{fill:i.fillLevel[t-1],size:r.starSize,points:r.starPoints,"star-id":t,step:i.step,"active-color":r.activeColor,"inactive-color":r.inactiveColor,"border-color":r.borderColor,"border-width":r.borderWidth,"rounded-corners":r.roundedCorners,rtl:r.rtl,glow:r.glow,"glow-color":r.glowColor,"onStar-selected":e[1]||(e[1]=t=>o.setRating(t,!0)),"onStar-mouse-move":o.setRating},null,8,["fill","size","points","star-id","step","active-color","inactive-color","border-color","border-width","rounded-corners","rtl","glow","glow-color","onStar-mouse-move"])],6))),128)),r.showRating?(Object(a["openBlock"])(),Object(a["createBlock"])("span",{key:0,class:["vue-star-rating-rating-text",r.textClass]},Object(a["toDisplayString"])(o.formattedRating),3)):Object(a["createCommentVNode"])("",!0)],32)],2)})),l=Object(a["withScopeId"])("data-v-6b2d6caa");Object(a["pushScopeId"])("data-v-6b2d6caa");const d=Object(a["createVNode"])("feMerge",null,[Object(a["createVNode"])("feMergeNode",{in:"coloredBlur"}),Object(a["createVNode"])("feMergeNode",{in:"SourceGraphic"})],-1);Object(a["popScopeId"])();const u=l((function(t,e,r,n,i,o){return Object(a["openBlock"])(),Object(a["createBlock"])("svg",{class:"vue-star-rating-star",height:o.starSize,width:o.starSize,viewBox:o.viewBox,onMousemove:e[1]||(e[1]=(...t)=>o.mouseMoving(...t)),onClick:e[2]||(e[2]=(...t)=>o.selected(...t))},[Object(a["createVNode"])("linearGradient",{id:i.grad,x1:"0",x2:"100%",y1:"0",y2:"0"},[Object(a["createVNode"])("stop",{offset:o.starFill,"stop-color":r.rtl?o.getColor(r.inactiveColor):o.getColor(r.activeColor),"stop-opacity":r.rtl?o.getOpacity(r.inactiveColor):o.getOpacity(r.activeColor)},null,8,["offset","stop-color","stop-opacity"]),Object(a["createVNode"])("stop",{offset:o.starFill,"stop-color":r.rtl?o.getColor(r.activeColor):o.getColor(r.inactiveColor),"stop-opacity":r.rtl?o.getOpacity(r.activeColor):o.getOpacity(r.inactiveColor)},null,8,["offset","stop-color","stop-opacity"])],8,["id"]),Object(a["createVNode"])("filter",{id:i.glowId,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"},[Object(a["createVNode"])("feGaussianBlur",{stdDeviation:r.glow,result:"coloredBlur"},null,8,["stdDeviation"]),d],8,["id"]),r.glowColor?Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createBlock"])("polygon",{key:0,points:o.starPointsToString,fill:o.gradId,stroke:r.glowColor,filter:"url(#"+i.glowId+")"},null,8,["points","fill","stroke","filter"])),[[a["vShow"],r.fill>1]]):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])("polygon",{points:o.starPointsToString,fill:o.gradId,stroke:o.getBorderColor,"stroke-width":o.border,"stroke-linejoin":r.roundedCorners?"round":"miter"},null,8,["points","fill","stroke","stroke-width","stroke-linejoin"]),Object(a["createVNode"])("polygon",{points:o.starPointsToString,fill:o.gradId},null,8,["points","fill"])],40,["height","width","viewBox"])}));var p={name:"Star",props:{fill:{type:Number,default:0},points:{type:Array,default(){return[]}},size:{type:Number,default:50},starId:{type:Number,required:!0},activeColor:{type:String,required:!0},inactiveColor:{type:String,required:!0},borderColor:{type:String,default:"#000"},borderWidth:{type:Number,default:0},roundedCorners:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},glow:{type:Number,default:0},glowColor:{type:String,default:null,required:!1}},emits:["star-mouse-move","star-selected"],data(){return{starPoints:[19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56],grad:"",glowId:""}},computed:{starPointsToString(){return this.starPoints.join(",")},gradId(){return"url(#"+this.grad+")"},starSize(){const t=this.roundedCorners&&this.borderWidth<=0?parseInt(this.size)-parseInt(this.border):this.size;return parseInt(t)+parseInt(this.border)},starFill(){return this.rtl?100-this.fill+"%":this.fill+"%"},border(){return this.roundedCorners&&this.borderWidth<=0?6:this.borderWidth},getBorderColor(){return this.roundedCorners&&this.borderWidth<=0?this.fill<=0?this.inactiveColor:this.activeColor:this.borderColor},maxSize(){return this.starPoints.reduce((function(t,e){return Math.max(t,e)}))},viewBox(){return"0 0 "+this.maxSize+" "+this.maxSize}},created(){this.starPoints=this.points.length?this.points:this.starPoints,this.calculatePoints(),this.grad=this.getRandomId(),this.glowId=this.getRandomId()},methods:{mouseMoving(t){this.$emit("star-mouse-move",{event:t,position:this.getPosition(t),id:this.starId})},getPosition(t){var e=.92*this.size;const r=this.rtl?Math.min(t.offsetX,45):Math.max(t.offsetX,1);var n=Math.round(100/e*r);return Math.min(n,100)},selected(t){this.$emit("star-selected",{id:this.starId,position:this.getPosition(t)})},getRandomId(){return Math.random().toString(36).substring(7)},calculatePoints(){this.starPoints=this.starPoints.map(t=>this.size/this.maxSize*t+1.5*this.border)},parseAlphaColor(t){const e=[{pattern:/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/,getColor:t=>t.replace(/,(?!.*,).*(?=\))|a/g,""),getOpacity:t=>t.match(/\.\d+|[01](?=\))/)[0]},{pattern:/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/,getColor:t=>t.replace(/,(?!.*,).*(?=\))|a/g,""),getOpacity:t=>t.match(/\.\d+|[01](?=\))/)[0]},{pattern:/^#([0-9A-Fa-f]{4}|[0-9A-Fa-f]{8})$/,getColor:t=>5===t.length?t.substring(0,4):t.substring(0,7),getOpacity:t=>5===t.length?(parseInt(t.substring(4,5)+t.substring(4,5),16)/255).toFixed(2):(parseInt(t.substring(7,9),16)/255).toFixed(2)},{pattern:/^transparent$/,getColor:()=>"#fff",getOpacity:()=>"0"}];for(let r=0;rthis.maxRating?this.maxRating:this.currentRating,this.createStars(),e?(this.clearable&&this.currentRating===this.selectedRating?this.selectedRating=0:this.selectedRating=this.currentRating,this.$emit("update:rating",this.selectedRating),this.ratingSelected=!0):this.$emit("hover:rating",this.currentRating)}},resetRating(){this.readOnly||(this.currentRating=this.selectedRating,this.createStars(this.shouldRound))},createStars(t=!0){t&&this.round();for(var e=0;e1?100:100*(this.currentRating-e)),this.fillLevel[e]=Math.round(t)}},round(){var t=1/this.increment;this.currentRating=Math.min(this.maxRating,Math.ceil(this.currentRating*t)/t)}}};r("b9b3");g.render=c,g.__scopeId="data-v-2cb4c6ca";var h=g,v=h;e["default"]=v}})}));
+//# sourceMappingURL=VueStarRating.umd.min.js.map
\ No newline at end of file
diff --git a/dist/VueStarRating.umd.min.js.map b/dist/VueStarRating.umd.min.js.map
new file mode 100644
index 0000000..a06b07d
--- /dev/null
+++ b/dist/VueStarRating.umd.min.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack://VueStarRating/webpack/universalModuleDefinition","webpack://VueStarRating/webpack/bootstrap","webpack://VueStarRating/./src/star.vue?840c","webpack://VueStarRating/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://VueStarRating/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://VueStarRating/./node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js","webpack://VueStarRating/./src/star.vue?bf36","webpack://VueStarRating/./node_modules/@soda/get-current-script/index.js","webpack://VueStarRating/./src/star-rating.vue?d939","webpack://VueStarRating/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VueStarRating/./src/star-rating.vue?2b60","webpack://VueStarRating/./src/star.vue?b9db","webpack://VueStarRating/./src/star-rating.vue?aaef","webpack://VueStarRating/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VueStarRating/./src/star-rating.vue","webpack://VueStarRating/./src/star.vue","webpack://VueStarRating/./src/star.vue?df83","webpack://VueStarRating/./src/star-rating.vue?8423","webpack://VueStarRating/./src/index.js","webpack://VueStarRating/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__8bbf__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","___CSS_LOADER_API_IMPORT___","push","listToStyles","parentId","list","styles","newStyles","length","item","id","css","media","sourceMap","part","parts","hasDocument","document","DEBUG","Error","stylesInDom","head","getElementsByTagName","singletonElement","singletonCounter","isProduction","noop","options","ssrIdKey","isOldIE","navigator","test","userAgent","toLowerCase","addStylesClient","_isProduction","_options","addStylesToDom","newList","mayRemove","domStyle","refs","j","addStyle","createStyleElement","styleElement","createElement","type","appendChild","obj","update","remove","querySelector","parentNode","removeChild","styleIndex","applyToSingletonTag","applyToTag","newObj","replaceText","textStore","index","replacement","filter","Boolean","join","styleSheet","cssText","cssNode","createTextNode","childNodes","insertBefore","setAttribute","ssrId","sources","btoa","unescape","encodeURIComponent","JSON","stringify","firstChild","cssWithMappingToString","useSourceMap","content","cssMapping","sourceMapping","toComment","sourceURLs","map","source","concat","sourceRoot","base64","data","toString","mediaQuery","dedupe","alreadyImportedModules","_i","getCurrentScript","descriptor","getOwnPropertyDescriptor","currentScript","err","pageSource","inlineScriptSourceRegExp","inlineScriptSource","ieStackRegExp","ffStackRegExp","stackDetails","exec","stack","scriptLocation","line","currentLocation","location","href","replace","hash","scripts","documentElement","outerHTML","RegExp","trim","readyState","src","innerHTML","locals","add","default","window","match","class","rtl","inline","resetRating","maxRating","readOnly","style","margin","fill","fillLevel","size","starSize","points","starPoints","star-id","step","active-color","activeColor","inactive-color","inactiveColor","border-color","borderColor","border-width","borderWidth","rounded-corners","roundedCorners","glow","glow-color","glowColor","setRating","$event","textClass","formattedRating","in","height","width","viewBox","mouseMoving","selected","grad","x1","x2","y1","y2","offset","starFill","stop-color","getColor","stop-opacity","getOpacity","glowId","filterUnits","stdDeviation","result","starPointsToString","gradId","stroke","getBorderColor","stroke-width","border","stroke-linejoin","props","Number","Array","starId","required","String","emits","computed","parseInt","reduce","a","b","Math","max","maxSize","calculatePoints","getRandomId","methods","$emit","event","position","getPosition","starWidth","min","offsetX","round","random","substring","point","inputColor","patterns","pattern","color","toFixed","opacity","parseAlphaColor","render","__scopeId","components","Star","increment","rating","roundStartRating","showRating","padding","fixedPoints","clearable","currentRating","selectedRating","ratingSelected","watch","val","createStars","should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zP,KAAQ,KAAK,IAAMsM,EAAOmD,UAAY,IAAMnD,EAAOmD,SAAW,IAChFzP,KAAKoR,eAAkB9E,EAAOxJ,GAAK2M,EAAY,GAAGa,QAAQ,GAC1DtQ,KAAKoR,cAAiBpR,KAAKoR,cAAgBpR,KAAK4K,UAAa5K,KAAK4K,UAAY5K,KAAKoR,cACnFpR,KAAKyR,cACDE,GACI3R,KAAKmR,WAAanR,KAAKoR,gBAAkBpR,KAAKqR,eAC9CrR,KAAKqR,eAAiB,EAEtBrR,KAAKqR,eAAiBrR,KAAKoR,cAG/BpR,KAAKuP,MAAM,gBAAiBvP,KAAKqR,gBACjCrR,KAAKsR,gBAAiB,GAGtBtR,KAAKuP,MAAM,eAAgBvP,KAAKoR,iBAI5C,cACSpR,KAAK6K,WACN7K,KAAKoR,cAAgBpR,KAAKqR,eAC1BrR,KAAKyR,YAAYzR,KAAK0R,eAG9B,YAAY5B,GAAQ,GACZA,GACA9P,KAAK8P,QAET,IAAK,IAAIzP,EAAI,EAAGA,EAAIL,KAAK4K,UAAWvK,IAAK,CACrC,IAAIuR,EAAQ,EACRvR,EAAIL,KAAKoR,gBACTQ,EAAS5R,KAAKoR,cAAgB/Q,EAAI,EAAK,IAAiC,KAA1BL,KAAKoR,cAAgB/Q,IAEvEL,KAAKiL,UAAU5K,GAAK4O,KAAKa,MAAM8B,KAIvC,QACI,IAAIC,EAAM,EAAM7R,KAAK6Q,UACrB7Q,KAAKoR,cAAgBnC,KAAKW,IAAI5P,KAAK4K,UAAWqE,KAAK6C,KAAK9R,KAAKoR,cAAgBS,GAAOA,M,UGhNhG,EAAOpB,OAAS,EAChB,EAAOC,UAAY,kBAEJ,QCNA,ICAA","file":"VueStarRating.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueStarRating\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"VueStarRating\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".vue-star-rating-star[data-v-6b2d6caa]{overflow:visible!important}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of \n","\n \n\n\n\n\n\n","import { render } from \"./star.vue?vue&type=template&id=6b2d6caa&scoped=true&bindings={\\\"fill\\\":\\\"props\\\",\\\"points\\\":\\\"props\\\",\\\"size\\\":\\\"props\\\",\\\"starId\\\":\\\"props\\\",\\\"activeColor\\\":\\\"props\\\",\\\"inactiveColor\\\":\\\"props\\\",\\\"borderColor\\\":\\\"props\\\",\\\"borderWidth\\\":\\\"props\\\",\\\"roundedCorners\\\":\\\"props\\\",\\\"rtl\\\":\\\"props\\\",\\\"glow\\\":\\\"props\\\",\\\"glowColor\\\":\\\"props\\\",\\\"starPoints\\\":\\\"data\\\",\\\"grad\\\":\\\"data\\\",\\\"glowId\\\":\\\"data\\\",\\\"starPointsToString\\\":\\\"options\\\",\\\"gradId\\\":\\\"options\\\",\\\"starSize\\\":\\\"options\\\",\\\"starFill\\\":\\\"options\\\",\\\"border\\\":\\\"options\\\",\\\"getBorderColor\\\":\\\"options\\\",\\\"maxSize\\\":\\\"options\\\",\\\"viewBox\\\":\\\"options\\\",\\\"mouseMoving\\\":\\\"options\\\",\\\"getPosition\\\":\\\"options\\\",\\\"selected\\\":\\\"options\\\",\\\"getRandomId\\\":\\\"options\\\",\\\"calculatePoints\\\":\\\"options\\\",\\\"parseAlphaColor\\\":\\\"options\\\",\\\"getColor\\\":\\\"options\\\",\\\"getOpacity\\\":\\\"options\\\"}\"\nimport script from \"./star.vue?vue&type=script&lang=js\"\nexport * from \"./star.vue?vue&type=script&lang=js\"\n\nimport \"./star.vue?vue&type=style&index=0&id=6b2d6caa&scoped=true&lang=css\"\nscript.render = render\nscript.__scopeId = \"data-v-6b2d6caa\"\n\nexport default script","import { render } from \"./star-rating.vue?vue&type=template&id=2cb4c6ca&scoped=true&bindings={\\\"increment\\\":\\\"props\\\",\\\"rating\\\":\\\"props\\\",\\\"roundStartRating\\\":\\\"props\\\",\\\"activeColor\\\":\\\"props\\\",\\\"inactiveColor\\\":\\\"props\\\",\\\"maxRating\\\":\\\"props\\\",\\\"starPoints\\\":\\\"props\\\",\\\"starSize\\\":\\\"props\\\",\\\"showRating\\\":\\\"props\\\",\\\"readOnly\\\":\\\"props\\\",\\\"textClass\\\":\\\"props\\\",\\\"inline\\\":\\\"props\\\",\\\"borderColor\\\":\\\"props\\\",\\\"borderWidth\\\":\\\"props\\\",\\\"roundedCorners\\\":\\\"props\\\",\\\"padding\\\":\\\"props\\\",\\\"rtl\\\":\\\"props\\\",\\\"fixedPoints\\\":\\\"props\\\",\\\"glow\\\":\\\"props\\\",\\\"glowColor\\\":\\\"props\\\",\\\"clearable\\\":\\\"props\\\",\\\"step\\\":\\\"data\\\",\\\"fillLevel\\\":\\\"data\\\",\\\"currentRating\\\":\\\"data\\\",\\\"selectedRating\\\":\\\"data\\\",\\\"ratingSelected\\\":\\\"data\\\",\\\"formattedRating\\\":\\\"options\\\",\\\"shouldRound\\\":\\\"options\\\",\\\"margin\\\":\\\"options\\\",\\\"setRating\\\":\\\"options\\\",\\\"resetRating\\\":\\\"options\\\",\\\"createStars\\\":\\\"options\\\",\\\"round\\\":\\\"options\\\"}\"\nimport script from \"./star-rating.vue?vue&type=script&lang=js\"\nexport * from \"./star-rating.vue?vue&type=script&lang=js\"\n\nimport \"./star-rating.vue?vue&type=style&index=0&id=2cb4c6ca&scoped=true&lang=css\"\nscript.render = render\nscript.__scopeId = \"data-v-2cb4c6ca\"\n\nexport default script","import StarRating from './star-rating.vue'\n\nexport default StarRating\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/star-rating.min.js b/dist/star-rating.min.js
deleted file mode 100644
index 254fcba..0000000
--- a/dist/star-rating.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VueStarRating",[],t):"object"==typeof exports?exports.VueStarRating=t():e.VueStarRating=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=0)}([function(e,t){throw new Error("Module build failed: Error: Cannot find module 'eslint/lib/formatters/stylish'\n at Function.Module._resolveFilename (module.js:547:15)\n at Function.Module._load (module.js:474:25)\n at Module.require (module.js:596:17)\n at require (internal/module.js:11:18)\n at Object.module.exports (C:\\Users\\apoude\\Documents\\workspace\\vue-star-rating\\node_modules\\eslint-loader\\index.js:156:18)")}])});
-//# sourceMappingURL=star-rating.min.js.map
\ No newline at end of file
diff --git a/dist/star-rating.min.js.map b/dist/star-rating.min.js.map
deleted file mode 100644
index 209b27f..0000000
--- a/dist/star-rating.min.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///star-rating.min.js","webpack:///webpack/bootstrap 026c1e4161a1b7a0efd7"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","Error"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,OAAA,mBAAAH,GACA,gBAAAC,SACAA,QAAA,cAAAD,IAEAD,EAAA,cAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAV,WAUA,OANAK,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,GAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KA+DA,OAnCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAG,EAAA,SAAAK,GAA2C,MAAAA,IAG3CR,EAAAS,EAAA,SAAAf,EAAAgB,EAAAC,GACAX,EAAAY,EAAAlB,EAAAgB,IACAG,OAAAC,eAAApB,EAAAgB,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAX,EAAAkB,EAAA,SAAAvB,GACA,GAAAgB,GAAAhB,KAAAwB,WACA,WAA2B,MAAAxB,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAK,GAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAQ,EAAAC,GAAsD,MAAAR,QAAAS,UAAAC,eAAAlB,KAAAe,EAAAC,IAGtDrB,EAAAwB,EAAA,SAGAxB,IAAAyB,EAAA,KDgBM,SAAU9B,EAAQD,GAExB,KAAM,IAAIgC,OAAM","file":"star-rating.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueStarRating\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueStarRating\"] = factory();\n\telse\n\t\troot[\"VueStarRating\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"VueStarRating\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueStarRating\"] = factory();\n\telse\n\t\troot[\"VueStarRating\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nthrow new Error(\"Module build failed: Error: Cannot find module 'eslint/lib/formatters/stylish'\\n at Function.Module._resolveFilename (module.js:547:15)\\n at Function.Module._load (module.js:474:25)\\n at Module.require (module.js:596:17)\\n at require (internal/module.js:11:18)\\n at Object.module.exports (C:\\\\Users\\\\apoude\\\\Documents\\\\workspace\\\\vue-star-rating\\\\node_modules\\\\eslint-loader\\\\index.js:156:18)\");\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// star-rating.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 026c1e4161a1b7a0efd7"],"sourceRoot":""}
\ No newline at end of file
diff --git a/examples/.DS_Store b/examples/.DS_Store
new file mode 100644
index 0000000..712e384
Binary files /dev/null and b/examples/.DS_Store differ
diff --git a/examples/commonjs/App.vue b/examples/commonjs/App.vue
index 35ba647..ab1e328 100644
--- a/examples/commonjs/App.vue
+++ b/examples/commonjs/App.vue
@@ -1,7 +1,9 @@
-
+
Reset
+dd
+ {{rating}}
-
+
+
+
+
diff --git a/src/star.vue b/src/star.vue
index dfa5e3f..bd5ac3c 100644
--- a/src/star.vue
+++ b/src/star.vue
@@ -1,29 +1,74 @@
-
diff --git a/vue.config.js b/vue.config.js
new file mode 100644
index 0000000..aad99bb
--- /dev/null
+++ b/vue.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ css: { extract: false }
+}
\ No newline at end of file
diff --git a/webpack.config.js b/webpack.config.js
deleted file mode 100644
index 8e260a6..0000000
--- a/webpack.config.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function buildConfig(env) {
- return require('./build/' + env + '.js');
-}
-
-module.exports = buildConfig;
\ No newline at end of file