diff --git a/package-lock.json b/package-lock.json index 7531e8e..12c534f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "@tinymce/tinymce-vue": "2.0.0", "bootstrap": "^4.5.3", "jquery": "^3.5.1", - "luxon": "^1.11.3", "moment": "^2.29.1", "moment-timezone": "^0.5.26", "popper.js": "^1.14.4", @@ -21,7 +20,7 @@ "v-calendar": "^0.9.7", "validatorjs": "^3.22.1", "vue": "^2.6.12", - "vue-bootstrap-datetimepicker": "^5.0.1", + "vue-date-pick": "^1.5.1", "vue-uniq-ids": "^1.0.0", "weekstart": "^1.0.0" }, @@ -13152,14 +13151,6 @@ "yallist": "^3.0.2" } }, - "node_modules/luxon": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/luxon/-/luxon-1.28.0.tgz", - "integrity": "sha512-TfTiyvZhwBYM/7QdAVDh+7dBTBA29v4ik0Ce9zda3Mnf8on1S5KJI8P2jKFZ8+5C0jhmr0KwJEO/Wdpm0VeWJQ==", - "engines": { - "node": "*" - } - }, "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -14689,34 +14680,6 @@ "node": ">=0.12" } }, - "node_modules/pc-bootstrap4-datetimepicker": { - "version": "4.17.51", - "resolved": "https://registry.npmjs.org/pc-bootstrap4-datetimepicker/-/pc-bootstrap4-datetimepicker-4.17.51.tgz", - "integrity": "sha512-UQDSKS5d1c43btk2vQ4siiv9YIkscZYQfTE513abeTqh5PIOJiyAeNdoCSTsDTZcpWJtWZHWk15yDXypYSFzcQ==", - "dependencies": { - "bootstrap": "^4.0.0-beta.2", - "jquery": "^1.8.3 || ^2.0 || ^3.0", - "moment": "^2.10", - "moment-timezone": "^0.4.0" - }, - "peerDependencies": { - "bootstrap": "^4.0.0-beta.2", - "jquery": "^1.8.3 || ^2.0 || ^3.0", - "moment": "^2.10", - "moment-timezone": "^0.4.0 || ^0.5.0" - } - }, - "node_modules/pc-bootstrap4-datetimepicker/node_modules/moment-timezone": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.4.1.tgz", - "integrity": "sha1-gfWYw61eIs2teWtn7NjYjQ9bqgY=", - "dependencies": { - "moment": ">= 2.6.0" - }, - "engines": { - "node": "*" - } - }, "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -19725,19 +19688,16 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==" }, - "node_modules/vue-bootstrap-datetimepicker": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/vue-bootstrap-datetimepicker/-/vue-bootstrap-datetimepicker-5.0.1.tgz", - "integrity": "sha512-jao7sWXHgKzjbOio97u7kEfB/FJMWJ5rhsc4q8iNTOLCULfSJ5m3AZ2qZh62dNcMA4/uuTW6m6tONYIith/2XQ==", + "node_modules/vue-date-pick": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/vue-date-pick/-/vue-date-pick-1.5.1.tgz", + "integrity": "sha512-7IZDRBgrBUWiF7xMgVAEETq49E//djP7mCbMofLtG91D0IZNbLocT0Z+eueVrJ496lf5WSUE1dF3/ZaOGZW++w==", "dependencies": { - "pc-bootstrap4-datetimepicker": "^4.17.50" + "vue": "^2.6.0" }, "engines": { - "node": ">= 6.9.0", - "npm": ">= 3.10.0" - }, - "peerDependencies": { - "vue": "^2.0.0" + "node": ">= 6.0.0", + "npm": ">= 3.0.0" } }, "node_modules/vue-eslint-parser": { @@ -31547,11 +31507,6 @@ "yallist": "^3.0.2" } }, - "luxon": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/luxon/-/luxon-1.28.0.tgz", - "integrity": "sha512-TfTiyvZhwBYM/7QdAVDh+7dBTBA29v4ik0Ce9zda3Mnf8on1S5KJI8P2jKFZ8+5C0jhmr0KwJEO/Wdpm0VeWJQ==" - }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -32801,27 +32756,6 @@ "sha.js": "^2.4.8" } }, - "pc-bootstrap4-datetimepicker": { - "version": "4.17.51", - "resolved": "https://registry.npmjs.org/pc-bootstrap4-datetimepicker/-/pc-bootstrap4-datetimepicker-4.17.51.tgz", - "integrity": "sha512-UQDSKS5d1c43btk2vQ4siiv9YIkscZYQfTE513abeTqh5PIOJiyAeNdoCSTsDTZcpWJtWZHWk15yDXypYSFzcQ==", - "requires": { - "bootstrap": "^4.0.0-beta.2", - "jquery": "^1.8.3 || ^2.0 || ^3.0", - "moment": "^2.10", - "moment-timezone": "^0.4.0" - }, - "dependencies": { - "moment-timezone": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.4.1.tgz", - "integrity": "sha1-gfWYw61eIs2teWtn7NjYjQ9bqgY=", - "requires": { - "moment": ">= 2.6.0" - } - } - } - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -36955,12 +36889,12 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==" }, - "vue-bootstrap-datetimepicker": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/vue-bootstrap-datetimepicker/-/vue-bootstrap-datetimepicker-5.0.1.tgz", - "integrity": "sha512-jao7sWXHgKzjbOio97u7kEfB/FJMWJ5rhsc4q8iNTOLCULfSJ5m3AZ2qZh62dNcMA4/uuTW6m6tONYIith/2XQ==", + "vue-date-pick": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/vue-date-pick/-/vue-date-pick-1.5.1.tgz", + "integrity": "sha512-7IZDRBgrBUWiF7xMgVAEETq49E//djP7mCbMofLtG91D0IZNbLocT0Z+eueVrJ496lf5WSUE1dF3/ZaOGZW++w==", "requires": { - "pc-bootstrap4-datetimepicker": "^4.17.50" + "vue": "^2.6.0" } }, "vue-eslint-parser": { diff --git a/package.json b/package.json index f890d9a..2414f8b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "@tinymce/tinymce-vue": "2.0.0", "bootstrap": "^4.5.3", "jquery": "^3.5.1", - "luxon": "^1.11.3", "moment": "^2.29.1", "moment-timezone": "^0.5.26", "popper.js": "^1.14.4", @@ -31,7 +30,7 @@ "v-calendar": "^0.9.7", "validatorjs": "^3.22.1", "vue": "^2.6.12", - "vue-bootstrap-datetimepicker": "^5.0.1", + "vue-date-pick": "^1.5.1", "vue-uniq-ids": "^1.0.0", "weekstart": "^1.0.0" }, diff --git a/src/DemoApp.vue b/src/DemoApp.vue index 82acef6..40d78eb 100644 --- a/src/DemoApp.vue +++ b/src/DemoApp.vue @@ -1,226 +1,249 @@ - diff --git a/src/components/DatePicker.vue b/src/components/DatePicker.vue new file mode 100644 index 0000000..7fc0453 --- /dev/null +++ b/src/components/DatePicker.vue @@ -0,0 +1,29 @@ + diff --git a/src/components/FormDatePicker.vue b/src/components/FormDatePicker.vue index e6497ac..3d6a2ea 100644 --- a/src/components/FormDatePicker.vue +++ b/src/components/FormDatePicker.vue @@ -1,68 +1,70 @@