├── .eslintignore ├── src ├── main.js ├── Rate.vue └── App.vue ├── vue.config.js ├── .gitignore ├── vue-rate.d.ts ├── dist ├── vue-rate.common.d.ts ├── vue-rate.umd.d.ts ├── vue-rate.umd.min.d.ts ├── vue-rate.css ├── vue-rate.umd.min.js ├── vue-rate.umd.min.js.map ├── vue-rate.common.js.map ├── vue-rate.common.js ├── vue-rate.umd.js └── vue-rate.umd.js.map ├── .eslintrc.js ├── index.html ├── LICENSE ├── package.json └── README.md /.eslintignore: -------------------------------------------------------------------------------- 1 | src/main.js 2 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import { createApp } from 'vue' 2 | import App from './App.vue' 3 | 4 | createApp(App).mount('#app') 5 | 6 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | const IsProd = process.env.NODE_ENV === 'production' 2 | 3 | const config = {} 4 | 5 | module.exports = config 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | npm-debug.log* 4 | yarn-debug.log* 5 | yarn-error.log* 6 | demo/ 7 | package-lock.json 8 | yarn.lock 9 | -------------------------------------------------------------------------------- /vue-rate.d.ts: -------------------------------------------------------------------------------- 1 | export namespace plugin { 2 | function install(): void 3 | } 4 | 5 | declare module "vue-rate" { 6 | export function install(): void 7 | } 8 | -------------------------------------------------------------------------------- /dist/vue-rate.common.d.ts: -------------------------------------------------------------------------------- 1 | export namespace plugin { 2 | function install(): void 3 | } 4 | 5 | declare module "vue-rate" { 6 | export function install(): void 7 | } 8 | -------------------------------------------------------------------------------- /dist/vue-rate.umd.d.ts: -------------------------------------------------------------------------------- 1 | export namespace plugin { 2 | function install(): void 3 | } 4 | 5 | declare module "vue-rate" { 6 | export function install(): void 7 | } 8 | -------------------------------------------------------------------------------- /dist/vue-rate.umd.min.d.ts: -------------------------------------------------------------------------------- 1 | export namespace plugin { 2 | function install(): void 3 | } 4 | 5 | declare module "vue-rate" { 6 | export function install(): void 7 | } 8 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true 5 | }, 6 | parserOptions: { 7 | sourceType: 'module', 8 | parser: 'babel-eslint' 9 | }, 10 | 11 | extends: [ 12 | "plugin:vue/essential", 13 | "eslint:recommended" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vue Rate 8 | 9 | 10 |
11 | 12 | -------------------------------------------------------------------------------- /dist/vue-rate.css: -------------------------------------------------------------------------------- 1 | .Rate{cursor:default}.Rate .icon{display:inline-block;width:16px;height:16px;stroke-width:0;stroke:currentColor;fill:currentColor;vertical-align:middle;top:-2px;position:relative;margin:0 5px}.Rate__star{color:#dedbdb;display:inline-block;padding:7px;text-decoration:none;cursor:pointer;background:transparent none;border:0}.Rate__star .icon{top:0;vertical-align:middle}.Rate__star.filled,.Rate__star.hover{color:#efc20f}.Rate__star:focus,.Rate__star:hover{text-decoration:none}.Rate__view .count,.Rate__view .desc{display:inline-block;vertical-align:middle;padding:7px}.Rate.has-error .Rate__star{color:#f37a77}.Rate.has-error .Rate__star.filled,.Rate.has-error .Rate__star.hover{color:#efc20f}.Rate__star[disabled]{opacity:.8}.Rate__star.filled[disabled],.Rate__star.hover[disabled]{color:#efc20f;opacity:.6}.Rate__view.disabled .count,.Rate__view.disabled .desc{color:#ccc} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Sinan Mutlu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-rate", 3 | "version": "3.1.1", 4 | "description": "Rate component for Vue", 5 | "main": "dist/vue-rate.umd.min.js", 6 | "types": "dist/vue-rate.umd.min.d.ts", 7 | "repository": { 8 | "type": "git", 9 | "url": "git+https://github.com/SinanMtl/vue-rate.git" 10 | }, 11 | "keywords": [ 12 | "vue", 13 | "rate", 14 | "component", 15 | "vue.js", 16 | "vue-component", 17 | "vue3" 18 | ], 19 | "author": "Sinan Mutlu ", 20 | "license": "MIT", 21 | "sideEffects": [ 22 | "**/*.css" 23 | ], 24 | "bugs": { 25 | "url": "https://github.com/SinanMtl/vue-rate/issues" 26 | }, 27 | "homepage": "https://github.com/SinanMtl/vue-rate#readme", 28 | "scripts": { 29 | "dev": "vue-cli-service serve src/main.js", 30 | "build": "vue-cli-service build --target lib --inilne-vue --name vue-rate build.js && rm dist/demo.html && npm run types", 31 | "demo": "vue-cli-service build --mode=demo --dest=demo", 32 | "lint": "vue-cli-service lint", 33 | "types": "cp vue-rate.d.ts dist/vue-rate.common.d.ts && cp vue-rate.d.ts dist/vue-rate.umd.d.ts && cp vue-rate.d.ts dist/vue-rate.umd.min.d.ts " 34 | }, 35 | "dependencies": { 36 | "vue": "^3.0.0" 37 | }, 38 | "devDependencies": { 39 | "@vue/cli-service": "^5.0.4", 40 | "vue-loader": "^17.0.0", 41 | "vue-template-compiler": "^2.6.14" 42 | }, 43 | "files": [ 44 | "dist" 45 | ] 46 | } 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vue Rate 2 | 3 | [![npm version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=js&r=r&type=6e&v=3.0.0&x2=0)](https://www.npmjs.com/package/vue-rate/v/3.0.0) 4 | [![npm](https://img.shields.io/npm/dt/vue-rate.svg)](https://www.npmjs.com/package/vue-rate/v/3.0.0) 5 | 6 | > Rate component for Vue - [Demo](https://sinanmtl.github.io/vue-rate/). 7 | > Note: This version for Vue 3. If you want to use for Vue 2.x, please [see](https://github.com/SinanMtl/vue-rate/tree/master). 8 | 9 | ## Installation and usage 10 | 11 | Once, install rate component for your project 12 | 13 | ```bash 14 | npm install vue-rate@next --save 15 | // or yarn add vue-rate@next 16 | ``` 17 | 18 | Import Vue Rate into your app 19 | 20 | ```javascript 21 | import { createApp } from 'vue' 22 | import rate from 'vue-rate' 23 | import 'vue-rate/dist/vue-rate.css' 24 | 25 | createApp(App) 26 | .use(rate) 27 | .mount('#app') 28 | ``` 29 | 30 | Use HTML template 31 | 32 | ```html 33 | 34 | ``` 35 | 36 | ## Options from props 37 | 38 | - `length {number}`: Star size 39 | 40 | ```html 41 | 42 | ``` 43 | 44 | - `value {number}`: Default value 45 | 46 | ```html 47 | 48 | ``` 49 | 50 | - `showcount {boolean}`: Shows rate number when mouseover the star. 51 | 52 | ```html 53 | 54 | ``` 55 | 56 | - `ratedesc {object}`: Rate star description array. 57 | 58 | ```html 59 | 60 | ``` 61 | 62 | - `disabled {boolean}`: Disable rate. 63 | 64 | ```html 65 | 66 | ``` 67 | 68 | - `readonly {boolean}`: Read-only rate. 69 | 70 | ```html 71 | 72 | ``` 73 | 74 | - `iconref {string}`: ID of symbol icon 75 | 76 | Insert symbol icon into your codebase 77 | ```html 78 | 79 | 80 | 81 | ```` 82 | 83 | Then add Rate component. `iconref` must be symbol's id 84 | ```html 85 | 86 | ``` 87 | 88 | - `slot`: Custom icon via slot 89 | 90 | You can directly use custom icon via default slot 91 | ```html 92 | 93 | 94 | 99 | 100 | 101 | ``` 102 | 103 | Add some flavour 104 | ```css 105 | .RateCustom.viaSlot .icon { 106 | width: 25px; 107 | height: 25px; 108 | } 109 | .Rate.viaSlot .Rate__star.filled{color: #813d1a;} 110 | .Rate.viaSlot .Rate__star.hover{color: #E67136;} 111 | ``` 112 | 113 | - `v-model` 114 | 115 | ```javascript 116 | export default { 117 | data: { 118 | return () { myRate: 0 } 119 | } 120 | } 121 | ``` 122 | 123 | or `setup()` in Option API 124 | ```javascript 125 | import { ref } from 'vue'; 126 | 127 | export default { 128 | setup () { 129 | const myRate = ref(0); 130 | return { myRate } 131 | } 132 | } 133 | ``` 134 | 135 | or Composition API with ` 160 | ``` 161 | 162 | ```html 163 | 164 | ``` 165 | 166 | ## Development 167 | 1. Fork the project 168 | 2. Install all dependencies 169 | 3. Make your changes on `src/Rate.vue` 170 | 4. Build the package 171 | ```bash 172 | npm run build 173 | # or yarn build 174 | ``` 175 | 5. Commit and create PR 176 | 177 | ## License 178 | 179 | MIT. 180 | -------------------------------------------------------------------------------- /src/Rate.vue: -------------------------------------------------------------------------------- 1 | 47 | 48 | 107 | 108 | 109 | 187 | -------------------------------------------------------------------------------- /dist/vue-rate.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-rate"]=t(require("vue")):e["vue-rate"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(e=>(()=>{var t={679:function(e,t){var n,r,o;(function(l,a){r=[],n=a,o="function"===typeof n?n.apply(t,r):n,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,r,o,l=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,u=l.exec(f.stack)||a.exec(f.stack),c=u&&u[1]||!1,i=u&&u[2]||!1,d=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");c===d&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(i-2)+"}[^<]* 186 | 187 | 254 | 255 | -------------------------------------------------------------------------------- /dist/vue-rate.umd.min.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"vue-rate.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,QACR,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIJ,GACe,kBAAZC,QACdA,QAAQ,YAAcD,EAAQG,QAAQ,QAEtCJ,EAAK,YAAcC,EAAQD,EAAK,SARlC,CASoB,qBAATO,KAAuBA,KAAOC,MAAQC,G,+BCTjD,WAMC,SAAUT,EAAMC,GAEb,EAAO,GAAI,EAAF,EAAS,kEAFtB,CAQkB,qBAATM,MAAuBA,MAAa,WAC3C,SAASG,IACP,IAAIC,EAAaC,OAAOC,yBAAyBC,SAAU,iBAE3D,IAAKH,GAAc,kBAAmBG,UAAYA,SAASC,cACzD,OAAOD,SAASC,cAIlB,GAAIJ,GAAcA,EAAWK,MAAQN,GAAoBI,SAASC,cAChE,OAAOD,SAASC,cAKlB,IACE,MAAM,IAAIE,MAEZ,MAAOC,GAEL,IAMEC,EACAC,EACAC,EAREC,EAAgB,kCAClBC,EAAgB,6BAChBC,EAAeF,EAAcG,KAAKP,EAAIQ,QAAUH,EAAcE,KAAKP,EAAIQ,OACvEC,EAAkBH,GAAgBA,EAAa,KAAO,EACtDI,EAAQJ,GAAgBA,EAAa,K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T,EAAMtC,OAC5BkD,EAAMZ,EAAMtC,OACHsC,EAAMS,WAAa,IAC5BG,EAAM,GAERd,EAAKP,MAAQQ,EAAaa,GAC1BhB,EAAKL,MAAQQ,EAAaa,M,y5CClGtBC,EAAc,EAEpB,ICLA,SAASC,EAAQC,EAAKC,EAAU,IAC/BD,EAAIE,UAAUD,EAAQE,MAAQC,EAAKD,MAAQ,OAAQC,GACnD,EAAAxC,EAAOwC,KAAOA,EAQf,MAAM,EAAS,CACdL,QAAAA,GAGD,IAEsB,qBAAX/B,QAA0BA,OAAOgC,KAC3ChC,OAAOgC,IAAIK,IAAI,GCjBhB,W","sources":["webpack://vue-rate/webpack/universalModuleDefinition","webpack://vue-rate/./node_modules/@soda/get-current-script/index.js","webpack://vue-rate/external umd {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://vue-rate/webpack/bootstrap","webpack://vue-rate/webpack/runtime/define property getters","webpack://vue-rate/webpack/runtime/global","webpack://vue-rate/webpack/runtime/hasOwnProperty shorthand","webpack://vue-rate/webpack/runtime/make namespace object","webpack://vue-rate/webpack/runtime/publicPath","webpack://vue-rate/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-rate/./src/Rate.vue","webpack://vue-rate/./src/Rate.vue?e862","webpack://vue-rate/./build.js","webpack://vue-rate/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.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[\"vue-rate\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"vue-rate\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), (__WEBPACK_EXTERNAL_MODULE__203__) => {\nreturn ","// addapted from the document.currentScript polyfill by Adam Miller\n// MIT license\n// source: https://github.com/amiller-gh/currentScript-polyfill\n\n// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n root.getCurrentScript = factory();\n }\n}(typeof self !== 'undefined' ? self : this, function () {\n function getCurrentScript () {\n var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')\n // for chrome\n if (!descriptor && 'currentScript' in document && document.currentScript) {\n return document.currentScript\n }\n\n // for other browsers with native support for currentScript\n if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {\n return document.currentScript\n }\n \n // IE 8-10 support script readyState\n // IE 11+ & Firefox support stack trace\n try {\n throw new Error();\n }\n catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n var ieStackRegExp = /.*at [^(]*\\((.*):(.+):(.+)\\)$/ig,\n ffStackRegExp = /@([^@]*):(\\d+):(\\d+)\\s*$/ig,\n stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),\n scriptLocation = (stackDetails && stackDetails[1]) || false,\n line = (stackDetails && stackDetails[2]) || false,\n currentLocation = document.location.href.replace(document.location.hash, ''),\n pageSource,\n inlineScriptSourceRegExp,\n inlineScriptSource,\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n \n if (scriptLocation === currentLocation) {\n pageSource = document.documentElement.outerHTML;\n inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*\n\n\n\n","import script from \"./Rate.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./Rate.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./Rate.vue?vue&type=style&index=0&id=76304c58&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import Rate from './src/Rate.vue'\n\nfunction install(Vue, options = {}) {\n\tVue.component(options.name || Rate.name || \"rate\", Rate)\n\tglobal.Rate = Rate\n}\n\nexport {\n\tRate\n}\n\n// Plugin\nconst plugin = {\n\tinstall\n};\n\nexport default plugin;\n\nif (typeof window !== 'undefined' && window.Vue) {\n\twindow.Vue.use(plugin)\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__203__","getCurrentScript","descriptor","Object","getOwnPropertyDescriptor","document","currentScript","get","Error","err","pageSource","inlineScriptSourceRegExp","inlineScriptSource","ieStackRegExp","ffStackRegExp","stackDetails","exec","stack","scriptLocation","line","currentLocation","location","href","replace","hash","scripts","getElementsByTagName","documentElement","outerHTML","RegExp","trim","i","length","readyState","src","innerHTML","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call","d","definition","key","o","defineProperty","enumerable","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","r","Symbol","toStringTag","value","p","match","slots","useSlots","over","ref","rate","convertValue","props","onOver","index","readonly","onOut","setRate","emit","isFilled","watch","modelValue","newVal","onBeforeMount","val","__exports__","install","Vue","options","component","name","Rate","use"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/vue-rate.common.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"vue-rate.common.js","mappings":";;;;;;AAAA;AACA;AACA;;AAEA;;AAEA;AACA,MAAM,IAA0C;AAChD,IAAI,iCAAO,EAAE,oCAAE,OAAO;AAAA;AAAA;AAAA,kGAAC;AACvB,IAAI,KAAK,EAIN;AACH,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA,+DAA+D,qBAAqB;AACpF;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxGF;;;;;AEAkE;AACL;;AAE7D,CAA+D;;AAE/D,oBAAoB,sCAAM;;AAE1B,2CAAe;;ACPkB;;AAEjC,kCAAkC;AAClC,+BAA+B,SAAS,YAAY,IAAI;AACxD,CAAC,qBAAM,QAAQ,IAAI;AACnB;;AAIC;;AAED;AACA,MAAM,YAAM;AACZ;AACA;;AAEA,4CAAe,YAAM,EAAC;;AAEtB;AACA,gBAAgB,YAAM;AACtB;;;ACpBwB;AACA;AACxB,gDAAe,KAAG;AACI","sources":["webpack://vue-rate/./node_modules/@soda/get-current-script/index.js","webpack://vue-rate/webpack/bootstrap","webpack://vue-rate/webpack/runtime/define property getters","webpack://vue-rate/webpack/runtime/global","webpack://vue-rate/webpack/runtime/hasOwnProperty shorthand","webpack://vue-rate/webpack/runtime/make namespace object","webpack://vue-rate/webpack/runtime/publicPath","webpack://vue-rate/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-rate/external commonjs2 {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://vue-rate/./src/Rate.vue","webpack://vue-rate/./src/Rate.vue?d109","webpack://vue-rate/./src/Rate.vue?9e77","webpack://vue-rate/./src/Rate.vue?e862","webpack://vue-rate/./build.js","webpack://vue-rate/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["// addapted from the document.currentScript polyfill by Adam Miller\n// MIT license\n// source: https://github.com/amiller-gh/currentScript-polyfill\n\n// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n root.getCurrentScript = factory();\n }\n}(typeof self !== 'undefined' ? self : this, function () {\n function getCurrentScript () {\n var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')\n // for chrome\n if (!descriptor && 'currentScript' in document && document.currentScript) {\n return document.currentScript\n }\n\n // for other browsers with native support for currentScript\n if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {\n return document.currentScript\n }\n \n // IE 8-10 support script readyState\n // IE 11+ & Firefox support stack trace\n try {\n throw new Error();\n }\n catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n var ieStackRegExp = /.*at [^(]*\\((.*):(.+):(.+)\\)$/ig,\n ffStackRegExp = /@([^@]*):(\\d+):(\\d+)\\s*$/ig,\n stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),\n scriptLocation = (stackDetails && stackDetails[1]) || false,\n line = (stackDetails && stackDetails[2]) || false,\n currentLocation = document.location.href.replace(document.location.hash, ''),\n pageSource,\n inlineScriptSourceRegExp,\n inlineScriptSource,\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n \n if (scriptLocation === currentLocation) {\n pageSource = document.documentElement.outerHTML;\n inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*\n\n\n\n","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../node_modules/vue-loader/dist/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./Rate.vue?vue&type=style&index=0&id=76304c58&lang=css\"","import script from \"./Rate.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./Rate.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./Rate.vue?vue&type=style&index=0&id=76304c58&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import Rate from './src/Rate.vue'\n\nfunction install(Vue, options = {}) {\n\tVue.component(options.name || Rate.name || \"rate\", Rate)\n\tglobal.Rate = Rate\n}\n\nexport {\n\tRate\n}\n\n// Plugin\nconst plugin = {\n\tinstall\n};\n\nexport default plugin;\n\nif (typeof window !== 'undefined' && window.Vue) {\n\twindow.Vue.use(plugin)\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/vue-rate.common.js: -------------------------------------------------------------------------------- 1 | /******/ (() => { // webpackBootstrap 2 | /******/ var __webpack_modules__ = ({ 3 | 4 | /***/ 679: 5 | /***/ (function(module, exports) { 6 | 7 | var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller 8 | // MIT license 9 | // source: https://github.com/amiller-gh/currentScript-polyfill 10 | 11 | // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505 12 | 13 | (function (root, factory) { 14 | if (true) { 15 | !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), 16 | __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 17 | (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 18 | __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 19 | } else {} 20 | }(typeof self !== 'undefined' ? self : this, function () { 21 | function getCurrentScript () { 22 | var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript') 23 | // for chrome 24 | if (!descriptor && 'currentScript' in document && document.currentScript) { 25 | return document.currentScript 26 | } 27 | 28 | // for other browsers with native support for currentScript 29 | if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { 30 | return document.currentScript 31 | } 32 | 33 | // IE 8-10 support script readyState 34 | // IE 11+ & Firefox support stack trace 35 | try { 36 | throw new Error(); 37 | } 38 | catch (err) { 39 | // Find the second match for the "at" string to get file src url from stack. 40 | var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, 41 | ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, 42 | stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), 43 | scriptLocation = (stackDetails && stackDetails[1]) || false, 44 | line = (stackDetails && stackDetails[2]) || false, 45 | currentLocation = document.location.href.replace(document.location.hash, ''), 46 | pageSource, 47 | inlineScriptSourceRegExp, 48 | inlineScriptSource, 49 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 50 | 51 | if (scriptLocation === currentLocation) { 52 | pageSource = document.documentElement.outerHTML; 53 | inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*\n\n\n\n","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-52.use[0]!../node_modules/css-loader/dist/cjs.js??clonedRuleSet-52.use[1]!../node_modules/vue-loader/dist/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-52.use[2]!../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./Rate.vue?vue&type=style&index=0&id=76304c58&lang=css\"","import script from \"./Rate.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./Rate.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./Rate.vue?vue&type=style&index=0&id=76304c58&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import Rate from './src/Rate.vue'\n\nfunction install(Vue, options = {}) {\n\tVue.component(options.name || Rate.name || \"rate\", Rate)\n\tglobal.Rate = Rate\n}\n\nexport {\n\tRate\n}\n\n// Plugin\nconst plugin = {\n\tinstall\n};\n\nexport default plugin;\n\nif (typeof window !== 'undefined' && window.Vue) {\n\twindow.Vue.use(plugin)\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""} --------------------------------------------------------------------------------