diff --git a/.babelrc b/.babelrc
deleted file mode 100644
index 1044612..0000000
--- a/.babelrc
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "presets": [
- [
- "@babel/preset-env",
- {
- "modules": false,
- "forceAllTransforms": false,
- "targets": {
- "browsers": [
- "defaults",
- "not dead",
- "not ie 11"
- ]
- }
- }
- ]
- ],
- "plugins": [],
- "env": {
- "test": {
- "presets": [
- [
- "@babel/preset-env",
- {
- "targets": {
- "node": "current"
- }
- }
- ]
- ]
- }
- }
-}
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index f254c4b..4fac6de 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -11,7 +11,7 @@
* flatPickr version : 4.6.x
* Vue.js version : 3.2
* Browser name and version : Chrome|Firefox|Edge x.x.x
-* This package version : 10.x.x
+* This package version : 11.x.x
**Current behavior**
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 722cf8f..89564e9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -3,11 +3,11 @@ name: build
on:
push:
branches:
- - master
+ - main
- dev
pull_request:
branches:
- - master
+ - main
- dev
schedule:
- cron: '0 0 11 * *'
diff --git a/README.md b/README.md
index 12b092c..9058205 100644
--- a/README.md
+++ b/README.md
@@ -5,9 +5,9 @@
[![npm-version](https://badgen.net/npm/v/vue-flatpickr-component)](https://www.npmjs.com/package/vue-flatpickr-component)
[![github-tag](https://badgen.net/github/tag/ankurk91/vue-flatpickr-component)](https://github.com/ankurk91/vue-flatpickr-component/tags)
[![build](https://github.com/ankurk91/vue-flatpickr-component/workflows/build/badge.svg)](https://github.com/ankurk91/vue-flatpickr-component/actions)
-[![codecov](https://codecov.io/gh/ankurk91/vue-flatpickr-component/branch/master/graph/badge.svg)](https://codecov.io/gh/ankurk91/vue-flatpickr-component)
-[![license](https://badgen.net/github/license/ankurk91/vue-flatpickr-component)](https://yarnpkg.com/en/package/vue-flatpickr-component)
-![TypeScript](https://badgen.net/badge/icon/Typed?icon=typescript&label&labelColor=blue&color=555555)
+[![codecov](https://codecov.io/gh/ankurk91/vue-flatpickr-component/branch/main/graph/badge.svg)](https://codecov.io/gh/ankurk91/vue-flatpickr-component)
+[![license](https://badgen.net/github/license/ankurk91/vue-flatpickr-component)](LICENSE.txt)
+![ts](https://badgen.net/badge/Built%20With/TypeScript/blue)
Vue.js component for [Flatpickr](https://flatpickr.js.org/) date-time picker.
@@ -15,10 +15,10 @@ Vue.js component for [Flatpickr](https://flatpickr.js.org/) date-time picker.
### Version matrix
-|Vue.js version|Package version | Branch |
-|:-------------|:--------------:|--------------------------------------------------------------------:|
-| 2.x | 8.x | [8.x](https://github.com/ankurk91/vue-flatpickr-component/tree/8.x) |
-| 3.x | 10.x | `master` |
+|Vue.js version| Package version | Branch |
+|:-------------|:---------------:|--------------------------------------------------------------------:|
+| 2.x | 8.x | [8.x](https://github.com/ankurk91/vue-flatpickr-component/tree/8.x) |
+| 3.x | 11.x | `main` |
## Features
@@ -35,7 +35,7 @@ Vue.js component for [Flatpickr](https://flatpickr.js.org/) date-time picker.
## Installation
```bash
-npm install vue-flatpickr-component@^10
+npm install vue-flatpickr-component@^11
```
## Usage
@@ -48,21 +48,12 @@ npm install vue-flatpickr-component@^10
-
```
@@ -99,7 +90,8 @@ Using Bootstrap [input group](https://getbootstrap.com/docs/4.6/components/input
-
```
@@ -153,9 +135,9 @@ The component accepts these props:
|:----------|:-----------------------------------------------:|:----------------------------------------------:|:-----------------------------------------------------------------------|
| v-model | String / Date Object / Array / Timestamp / null | `null` | Set or Get date-picker value (required) |
| config | Object | `{ wrap: false }` | Flatpickr configuration [options](https://flatpickr.js.org/options/) |
-| events | Array | Array of sensible [events](./src/events.js#L2) | Customise the [events](https://flatpickr.js.org/events/) to be emitted |
+| events | Array | Array of sensible [events](./src/events.ts#L2) | Customise the [events](https://flatpickr.js.org/events/) to be emitted |
-## Install in non-module environments (without webpack)
+## Use in browser with CDN
```html
@@ -164,7 +146,7 @@ The component accepts these props:
-
+