Installations
npm install v-money-spinner
Developer Guide
Typescript
No
Module System
ESM
Node Version
19.9.0
NPM Version
9.6.3
Score
55
Supply Chain
97.9
Quality
76
Maintenance
100
Vulnerability
100
License
Releases
Added spinner align
Published on 12 Jun 2023
Changed to Vue Composition API with TS-Standard
Published on 21 Mar 2023
Migration to Typescript.
Published on 06 Mar 2023
Change of the bundler tool due to compatibility failure
Published on 09 Sept 2021
Implementation for add and subtract with big numbers
Published on 06 Sept 2021
Upgrade to Vue3
Published on 05 Sept 2021
Contributors
Unable to fetch Contributors
Languages
Vue (76.26%)
TypeScript (20.56%)
HTML (3.19%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
19,743
Last Day
17
Last Week
141
Last Month
504
Last Year
4,387
GitHub Statistics
20 Stars
94 Commits
3 Watching
3 Branches
1 Contributors
Bundle Size
238.88 kB
Minified
79.62 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.3.2
Package Id
v-money-spinner@1.3.2
Unpacked Size
34.94 kB
Size
7.95 kB
File Count
13
NPM Version
9.6.3
Node Version
19.9.0
Publised On
12 Jun 2023
Total Downloads
Cumulative downloads
Total Downloads
19,743
Last day
-41.4%
17
Compared to previous day
Last week
2.9%
141
Compared to previous week
Last month
140%
504
Compared to previous month
Last year
-40.4%
4,387
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
6
Welcome to V-Money-Spinner
V-Money-Spinner for Vue3 is a component which can preset a input spinner with mask currency and style bootstrap, this latter can be disabled.
Notice: Migration Vue2 to Vue3 || I need V-Money-Spinner for Vue2
Demo
Enjoy :smile:
Installation
1npm i v-money-spinner
1import MoneySpinner from 'v-money-spinner' 2app.use(MoneySpinner)
Use
1<template> 2 <v-money-spinner v-model="amount" v-bind="config"></v-money-spinner> 3 {{ amount }} 4</template> 5 6<script> 7 export default { 8 data () { 9 return { 10 amount: 123.45, 11 config: { 12 spinner: true, 13 step: 10, 14 min: -10, 15 max: 200, 16 prefix: "$ ", 17 suffix: " MXN", 18 precision: 2, 19 decimal: '.', 20 thousands: ',', 21 template: "bootstrap", 22 masked: true, 23 disableNegative: false, 24 align: "center", 25 spinnerAlign: "normal", 26 } 27 } 28 } 29 } 30</script>
Properties
Property | Type | Default | Description |
---|---|---|---|
spinner | Boolean | true | Apply spinner buttons to the input |
step | Number | 1 | Number of steps |
precision | Number | 2 | How many decimal places |
decimal | String | "." | Decimal separator |
thousands | String | "," | Thousands separator |
prefix | String | "" | Currency symbol followed by a Space, like "R$ " |
suffix | String | "" | Percentage for example: " %" |
min | Number | null | The min value allowed |
max | Number | null | The max value allowed |
template | String | "bootstrap" | Apply template styles, use false if you not need template |
masked | Boolean | false | If the component output should include the mask or not |
allowBlank | Boolean | false | If the field can start blank and be cleared out by user |
disableNegative | Boolean | false | Don't allow negative values |
minCharacters | Number | 0 | Minimum number of characters (leading zero) |
should-round | Boolean | false | Should default values be rounded or sliced |
focus-on-right | Boolean | false | When focus, set the cursor to the far right |
id | String | "v-money-spinner" | Input id |
label | String | "" | Text for label tag |
align | String | "center" | Change by "start" or "end" to align the text in the input |
Events
Event | Parameters | Description |
---|---|---|
change | unformatted, formatted, old_amount | Fires when the input value change |
plus | unformatted, formatted | Fires when user click on the plus button |
minus | unformatted, formatted | Fires when user click on the minus button |
positive | unformatted, formatted, old_amount | Fires when the amount change to positive |
negative | unformatted, formatted, old_amount | Fires when the amount change to negative |
Classes (style css)
Classes | Description |
---|---|
labelClass | Class for the label tag |
inputClass | Class for the input tag |
prependClass | Class for the left button tag |
appendClass | Class for the right button tag |
wrapperClass | Class for div contains all money-spinner |
wrapperGroupClass | Class for div contains input and the buttons |
Migration Vue2 -> Vue3
Summary of changes of the VMoneySpinner files and documentation to help you migrate from Vue2 to Vue3.
New Core
Previously for the use of the VMoneySpinner with Vue2 was used as core the component VMoney by @vuejs-tips, now for Vue3 is used as core VMoney3 by @jonathanpmartins.
Properties
- Added
disableNegative
(by core) for block the use of negative numbers. - Added
minCharacters
aliasminimumNumberOfCharacters
(by core) for insert 0 digit that comes before the first nonzero digit. Renamed
bootstrap
totemplate
for the handling different templates though string.Dropped
amend
andinvalidMessage
since the new core does not allow to exceed the properties maximum and minimum.
StyleMinimum number of characters (leading zero)
Change/Update classes (style css) default of Bootstrap 4.6 to Bootstrap 5.1.
Dropped
wrapperPrependClass
for change in structure of Bootstrap 5.
Events
Dropped
exceeded
since the new core does not allow to exceed the properties maximum and minimum.
I need for Vue2
Install for Vue2
1npm i v-money-spinner@0.1.8
Configuration for Vue2
References
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 19 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw
- Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g
- Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3
- Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx
- Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6
- Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx
Score
1.7
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More