From 9b018f869257eff8c1fb3c32b7c46635060f1e81 Mon Sep 17 00:00:00 2001 From: Yury Uvarov Date: Tue, 25 Oct 2022 15:39:53 +0300 Subject: [PATCH] Release v2.1.0 --- LICENSE | 21 + build/index.html | 2 +- build/vanilla-calendar.min.css | 2 +- build/vanilla-calendar.min.js | 2 +- package.json | 22 +- postcss.config.js | 7 + src/index.d.ts | 70 +++ src/index.html | 2 +- src/index.ts | 2 +- src/scripts/methods/changeMonth.ts | 2 +- src/scripts/methods/clickCalendar.ts | 12 +- src/scripts/methods/controlArrows.ts | 2 +- src/scripts/methods/controlTime.ts | 2 +- src/scripts/methods/createDOM.ts | 2 +- src/scripts/methods/createDays.ts | 14 +- src/scripts/methods/createHeader.ts | 2 +- src/scripts/methods/createMonths.ts | 2 +- src/scripts/methods/createPopup.ts | 10 +- src/scripts/methods/createTime.ts | 2 +- src/scripts/methods/createWeek.ts | 2 +- src/scripts/methods/createWeekNumbers.ts | 2 +- src/scripts/methods/createYears.ts | 2 +- src/scripts/methods/generateDate.ts | 4 +- src/scripts/methods/getLocale.ts | 2 +- src/scripts/methods/initCalendar.ts | 2 +- src/scripts/methods/setVariablesDates.ts | 2 +- src/scripts/methods/updateCalendar.ts | 2 +- src/scripts/types.ts | 81 --- src/scripts/vanilla-calendar.ts | 39 +- src/types.ts | 89 +++ webpack.config.ts | 3 + yarn.lock | 688 ++++++++++++++++++++--- 32 files changed, 878 insertions(+), 220 deletions(-) create mode 100644 LICENSE create mode 100644 postcss.config.js create mode 100644 src/index.d.ts delete mode 100644 src/scripts/types.ts create mode 100644 src/types.ts diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..349cef5b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Yury Uvarov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/build/index.html b/build/index.html index 502a64fb..943fc60b 100644 --- a/build/index.html +++ b/build/index.html @@ -5,7 +5,7 @@ - Vanilla JS Calendar - A lightweight date and time picker written in pure JavaScript. + Vanilla JS Calendar - A lightweight date and time picker written in pure JavaScript using TypeScript.