├── .editorconfig ├── .gitattributes ├── .gitignore ├── README.md ├── babel.config.js ├── cypress.json ├── dist ├── vue-persian-datetime-picker.common.js ├── vue-persian-datetime-picker.umd.js └── vue-persian-datetime-picker.umd.min.js ├── docs.deploy.sh ├── docs ├── .vuepress │ ├── config.js │ ├── enhanceApp.js │ ├── public │ │ ├── fonts │ │ │ ├── IRANSansWeb.eot │ │ │ ├── IRANSansWeb.ttf │ │ │ ├── IRANSansWeb.woff │ │ │ ├── IRANSansWeb.woff2 │ │ │ ├── IRANSansWeb_Bold.eot │ │ │ ├── IRANSansWeb_Bold.ttf │ │ │ ├── IRANSansWeb_Bold.woff │ │ │ ├── IRANSansWeb_Bold.woff2 │ │ │ ├── IRANSansWeb_Light.eot │ │ │ ├── IRANSansWeb_Light.ttf │ │ │ ├── IRANSansWeb_Light.woff │ │ │ ├── IRANSansWeb_Light.woff2 │ │ │ └── IRANSans_Medium.eot │ │ └── vue-persian-datetime-picker.png │ └── styles │ │ ├── index.styl │ │ └── palette.styl ├── config │ └── README.md ├── guide │ ├── README.md │ ├── append-to.md │ ├── auto-submit.md │ ├── custom-input.md │ ├── datetime-picker.md │ ├── different-input-format.md │ ├── disabling.md │ ├── editable.md │ ├── events.md │ ├── examples.md │ ├── formatting.md │ ├── highlight.md │ ├── initial-value.md │ ├── input-settings.md │ ├── installation.md │ ├── label.md │ ├── localization.md │ ├── min-max.md │ ├── multiple.md │ ├── popover.md │ ├── range.md │ ├── recommend-config.md │ ├── simple-mode.md │ ├── slots.md │ ├── theme.md │ ├── time-picker.md │ ├── timezone.md │ ├── use-router.md │ └── view.md └── index.md ├── index.d.ts ├── package-lock.json ├── package.json ├── src ├── VuePersianDatetimePicker.vue ├── assets │ └── scss │ │ ├── _transitions.scss │ │ ├── _variables.scss │ │ └── style.scss ├── components │ ├── Arrow.vue │ ├── Btn.vue │ ├── CalendarIcon.vue │ ├── EditIcon.vue │ ├── LocaleChange.vue │ ├── TimeIcon.vue │ ├── simple │ │ ├── SimpleMode.vue │ │ └── SimpleModeColumn.vue │ └── time │ │ ├── TimeColumn.vue │ │ └── TimeSection.vue └── modules │ ├── core.js │ ├── mixins.js │ ├── moment.locale.fa.js │ ├── popover-util.js │ └── utils.js ├── tests ├── e2e │ ├── .eslintrc.js │ ├── plugins │ │ └── index.js │ ├── specs │ │ └── test.js │ └── support │ │ ├── commands.js │ │ └── index.js └── unit │ └── example.spec.js └── vue.config.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | 4 | /tests/e2e/videos/ 5 | /tests/e2e/screenshots/ 6 | /docs/.vuepress/dist/ 7 | 8 | 9 | # local env files 10 | .env.local 11 | .env.*.local 12 | 13 | # Log files 14 | npm-debug.log* 15 | yarn-debug.log* 16 | yarn-error.log* 17 | pnpm-debug.log* 18 | 19 | # Editor directories and files 20 | .idea 21 | .vscode 22 | *.suo 23 | *.ntvs* 24 | *.njsproj 25 | *.sln 26 | *.sw? 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-persian-datetime-picker 2 | 3 | [](https://www.npmjs.com/package/vue-persian-datetime-picker) 4 | 5 | > A vue plugin to select jalali date and time 6 | 7 | See documentation and demo at [vue-persian-datetime-picker](https://talkhabi.github.io/vue-persian-datetime-picker) 8 | 9 | If you are using vuejs 3, please refer to [this repository](https://github.com/talkhabi/vue3-persian-datetime-picker). 10 | 11 | 12 | ## Installation 13 | ### browser 14 | ```html 15 | 16 | 17 | 18 | 19 |
date = {{ date }}
49 |
50 | date = {{ date2 }}
160 |
161 | date = {{ date }}
39 |
40 | dateMoment = {{ dateMoment.format('dddd jDD jMMMM jYYYY') }}
75 | date = {{ date2 }}
77 |
78 | UTC: {{ datetime }}
49 |
50 |
51 |
--------------------------------------------------------------------------------
/docs/guide/use-router.md:
--------------------------------------------------------------------------------
1 | # Using vue-router
2 |
3 | ::: tip
4 | This option helps users to close the picker without changing the screen
5 | when pressing the back button.
6 | :::
7 |
8 | ```vue
9 |