Gathering detailed insights and metrics for vue3-persian-datetime-picker
Gathering detailed insights and metrics for vue3-persian-datetime-picker
Gathering detailed insights and metrics for vue3-persian-datetime-picker
Gathering detailed insights and metrics for vue3-persian-datetime-picker
react-native-modal-datetime-picker
A react-native datetime-picker for Android and iOS
vue-persian-datetime-picker
A vue plugin to select jalali date and time
react-native-date-picker
A datetime picker for React Native. In-modal or inlined. Supports Android and iOS.
react-datetime-picker
A date range picker for your React app.
npm install vue3-persian-datetime-picker
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
159 Stars
59 Commits
16 Forks
1 Watching
2 Branches
3 Contributors
Updated on 22 Nov 2024
Minified
Minified + Gzipped
Vue (68.1%)
SCSS (16.72%)
JavaScript (14.5%)
HTML (0.54%)
Shell (0.14%)
Cumulative downloads
Total Downloads
Last day
16.3%
427
Compared to previous day
Last week
14%
2,055
Compared to previous week
Last month
-2.3%
8,315
Compared to previous month
Last year
118.2%
73,521
Compared to previous year
A vue plugin to select jalali date and time
See documentation and demo at vue-persian-datetime-picker.
If you are using vuejs 2, please refer to this repository.
1<script src="https://unpkg.com/vue@next"></script> 2<script src="https://cdn.jsdelivr.net/npm/moment"></script> 3<script src="https://cdn.jsdelivr.net/npm/moment-jalaali@0.9.4/build/moment-jalaali.js"></script> 4<script src="/dist/vue3-persian-datetime-picker.umd.min.js"></script> 5<div id="app"> 6 <date-picker v-model="date"></date-picker> 7</div> 8<script> 9 Vue.createApp({ 10 data: function() { 11 return { 12 date: '1400/01/01' 13 } 14 }, 15 components: { 16 DatePicker: Vue3PersianDatetimePicker 17 } 18 }).mount('#app') 19</script>
1npm install vue3-persian-datetime-picker --save
Configuration for moment to ignore loading locales:
1// vue.config.js: 2module.exports = { 3 //.. 4 configureWebpack: { 5 plugins: [new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)] 6 }, 7 //... 8}
vitejs configuration:
1// vite.config.js 2// ... 3export default defineConfig({ 4 // ... 5 resolve: { 6 mainFields: [ 7 'browser', 8 'module', 9 'main', 10 'jsnext:main', 11 'jsnext' 12 ] 13 } 14})
1// main.js 2 3import { createApp } from 'vue' 4import Vue3PersianDatetimePicker from 'vue3-persian-datetime-picker' 5const app = createApp({}) 6app.component('DatePicker', Vue3PersianDatetimePicker) 7app.mount('#app')
Or in component
1<template> 2 <date-picker v-model="date"></date-picker> 3</template> 4 5<script> 6 import DatePicker from 'vue3-persian-datetime-picker' 7 export default { 8 data(){ 9 return { 10 date: '' 11 } 12 }, 13 components: { DatePicker } 14 } 15</script>
1// main.js 2 3import Vue3PersianDatetimePicker from 'vue3-persian-datetime-picker' 4const app = createApp({}) 5app.use(Vue3PersianDatetimePicker, { 6 name: 'CustomDatePicker', 7 props: { 8 format: 'YYYY-MM-DD HH:mm', 9 displayFormat: 'jYYYY-jMM-jDD', 10 editable: false, 11 inputClass: 'form-control my-custom-class-name', 12 placeholder: 'Please select a date', 13 altFormat: 'YYYY-MM-DD HH:mm', 14 color: '#00acc1', 15 autoSubmit: false, 16 //... 17 //... And whatever you want to set as default. 18 //... 19 } 20})
Then use in component
1<custom-date-picker v-model="date"></custom-date-picker>
This project is licensed under the MIT License
custom-input
input-attrs
@next-month
and @prev-month
events@year-change
and @month-change
eventsNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/28 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
71 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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