From b141444b56e7f4185ad4a5f894f83c72923fe062 Mon Sep 17 00:00:00 2001 From: jduar Date: Sun, 9 Jun 2024 23:04:48 +0100 Subject: [PATCH] Implement new date/time range picker Co-authored-by: Christophe Chapuis --- package-lock.json | 131 +++++----------------------------- package.json | 2 +- src/components/AppHeader.vue | 132 ++++++++++++++++++++++------------- src/locales/en-GB.json | 7 +- src/locales/en-US.json | 7 +- src/styles/_base.scss | 31 +++++--- src/styles/_datepicker.scss | 51 +++++++++++--- 7 files changed, 177 insertions(+), 184 deletions(-) diff --git a/package-lock.json b/package-lock.json index d210380..d61dea8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,13 +14,13 @@ "leaflet.heat": "^0.2.0", "moment": "^2.30.1", "vue": "^2.7.16", - "vue-ctk-date-time-picker": "^2.5.0", "vue-feather-icons": "^5.1.0", "vue-i18n": "^8.28.2", "vue-js-modal": "^2.0.1", "vue-mq": "^1.0.1", "vue-outside-events": "^1.1.3", "vue-router": "^3.6.5", + "vue2-datepicker": "^3.11.1", "vue2-leaflet": "^2.7.1", "vuex": "^3.6.2" }, @@ -1720,18 +1720,6 @@ "version": "3.1.3", "license": "MIT" }, - "node_modules/d": { - "version": "1.0.1", - "license": "ISC", - "dependencies": { - "es5-ext": "^0.10.50", - "type": "^1.0.1" - } - }, - "node_modules/d/node_modules/type": { - "version": "1.2.0", - "license": "ISC" - }, "node_modules/data-urls": { "version": "5.0.0", "dev": true, @@ -1752,6 +1740,11 @@ "node": ">=18" } }, + "node_modules/date-format-parse": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/date-format-parse/-/date-format-parse-0.2.7.tgz", + "integrity": "sha512-/+lyMUKoRogMuTeOVii6lUwjbVlesN9YRYLzZT/g3TEZ3uD9QnpjResujeEqUW+OSNbT7T1+SYdyEkTcRv+KDQ==" + }, "node_modules/debug": { "version": "4.3.4", "dev": true, @@ -1862,37 +1855,6 @@ "license": "MIT", "peer": true }, - "node_modules/es5-ext": { - "version": "0.10.63", - "hasInstallScript": true, - "license": "ISC", - "dependencies": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "esniff": "^2.0.1", - "next-tick": "^1.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/es6-iterator": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "node_modules/es6-symbol": { - "version": "3.1.3", - "license": "ISC", - "dependencies": { - "d": "^1.0.1", - "ext": "^1.1.2" - } - }, "node_modules/esbuild": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", @@ -2245,19 +2207,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/esniff": { - "version": "2.0.1", - "license": "ISC", - "dependencies": { - "d": "^1.0.1", - "es5-ext": "^0.10.62", - "event-emitter": "^0.3.5", - "type": "^2.7.2" - }, - "engines": { - "node": ">=0.10" - } - }, "node_modules/espree": { "version": "9.6.1", "dev": true, @@ -2322,14 +2271,6 @@ "node": ">=0.10.0" } }, - "node_modules/event-emitter": { - "version": "0.3.5", - "license": "MIT", - "dependencies": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, "node_modules/eventemitter3": { "version": "1.2.0", "dev": true, @@ -2344,13 +2285,6 @@ "node": ">=0.8.x" } }, - "node_modules/ext": { - "version": "1.7.0", - "license": "ISC", - "dependencies": { - "type": "^2.7.2" - } - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "dev": true, @@ -3337,19 +3271,6 @@ "webpack": "^1 || ^2 || ^3 || ^4 || ^5" } }, - "node_modules/moment-range": { - "version": "4.0.2", - "license": "Unlicense", - "dependencies": { - "es6-symbol": "^3.1.0" - }, - "engines": { - "node": "*" - }, - "peerDependencies": { - "moment": ">= 2" - } - }, "node_modules/nanoid": { "version": "3.3.7", "funding": [ @@ -3377,10 +3298,6 @@ "license": "MIT", "peer": true }, - "node_modules/next-tick": { - "version": "1.1.0", - "license": "ISC" - }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", @@ -4299,10 +4216,6 @@ "dev": true, "license": "0BSD" }, - "node_modules/type": { - "version": "2.7.2", - "license": "ISC" - }, "node_modules/type-check": { "version": "0.4.0", "dev": true, @@ -4409,13 +4322,6 @@ "dev": true, "license": "MIT" }, - "node_modules/v-click-outside": { - "version": "2.1.5", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/vite": { "version": "5.2.13", "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.13.tgz", @@ -4685,20 +4591,6 @@ "csstype": "^3.1.0" } }, - "node_modules/vue-ctk-date-time-picker": { - "version": "2.5.0", - "license": "MIT", - "dependencies": { - "moment": "^2.24.0", - "moment-range": "^4.0.1", - "v-click-outside": "^2.0.2", - "vue": "^2.6.9" - }, - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, "node_modules/vue-eslint-parser": { "version": "9.4.3", "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz", @@ -4803,6 +4695,17 @@ "version": "3.6.5", "license": "MIT" }, + "node_modules/vue2-datepicker": { + "version": "3.11.1", + "resolved": "https://registry.npmjs.org/vue2-datepicker/-/vue2-datepicker-3.11.1.tgz", + "integrity": "sha512-6PU/+pnp2mgZAfnSXmbdwj9516XsEvTiw61Q5SNrvvdy8W/FCxk1GAe9UZn/m9YfS5A47yK6XkcjMHbp7aFApA==", + "dependencies": { + "date-format-parse": "^0.2.7" + }, + "peerDependencies": { + "vue": "^2.5.0" + } + }, "node_modules/vue2-leaflet": { "version": "2.7.1", "license": "MIT", diff --git a/package.json b/package.json index c3fca93..9b4f989 100644 --- a/package.json +++ b/package.json @@ -30,13 +30,13 @@ "leaflet.heat": "^0.2.0", "moment": "^2.30.1", "vue": "^2.7.16", - "vue-ctk-date-time-picker": "^2.5.0", "vue-feather-icons": "^5.1.0", "vue-i18n": "^8.28.2", "vue-js-modal": "^2.0.1", "vue-mq": "^1.0.1", "vue-outside-events": "^1.1.3", "vue-router": "^3.6.5", + "vue2-datepicker": "^3.11.1", "vue2-leaflet": "^2.7.1", "vuex": "^3.6.2" }, diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 2f4d7dc..8d4114f 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -53,35 +53,31 @@