From 617fda1589e1267ae90221d9005063aabe1f8c18 Mon Sep 17 00:00:00 2001 From: Kilian Saffran Date: Mon, 12 Aug 2019 13:26:22 +0200 Subject: [PATCH] calendars remove --- .../jscalendar/css/jsCalendar.clean.css | 178 -- .../jscalendar/css/jsCalendar.clean.min.css | 30 - .../vendors/jscalendar/css/jsCalendar.css | 391 ----- .../jscalendar/css/jsCalendar.darkseries.css | 159 -- .../css/jsCalendar.darkseries.min.css | 30 - .../jscalendar/css/jsCalendar.micro.css | 58 - .../jscalendar/css/jsCalendar.micro.min.css | 30 - backoffice/vendors/jscalendar/demos/LICENSE | 21 - .../demos/cdn-jsdelivr full demo.html | 54 - .../demos/cdn-jsdelivr minimal demo.html | 15 - .../jscalendar/demos/cdn-unpkg full demo.html | 54 - .../demos/cdn-unpkg minimal demo.html | 15 - .../jscalendar/demos/colorful selects.html | 146 -- .../vendors/jscalendar/demos/date events.html | 288 ---- .../jscalendar/demos/date pickers.html | 74 - .../demos/examples/attribute version.html | 28 - .../calendar creation with selectors.html | 40 - .../demos/examples/calendar creation.html | 53 - .../demos/examples/calendar events.html | 51 - .../examples/calendar object get set del.html | 73 - .../demos/examples/calendar options.html | 56 - .../examples/calendar render handlers.html | 163 -- .../demos/examples/extensions/datepicker.html | 125 -- .../demos/examples/goto a date method.html | 52 - ...age parameter and methods setLanguage.html | 48 - .../jscalendar/demos/examples/languages.html | 143 -- .../min max parameters and methods.html | 81 - .../demos/examples/next previous methods.html | 50 - .../demos/examples/parameters day format.html | 44 - .../parameters first day of the week.html | 67 - .../examples/parameters month format.html | 40 - .../parameters navigator position.html | 36 - .../demos/examples/parameters navigator.html | 26 - .../demos/examples/parameters zero fill.html | 36 - .../demos/examples/refresh method.html | 39 - .../demos/examples/reset method.html | 39 - ...elect unselect and clear days methods.html | 66 - .../demos/examples/set date method.html | 39 - .../demos/examples/theme classic.html | 29 - .../demos/examples/theme clean.html | 30 - .../demos/examples/theme colors all.html | 61 - .../demos/examples/theme colors.html | 27 - .../demos/examples/theme custom colors.html | 53 - .../demos/examples/theme darkseries.html | 34 - .../demos/examples/theme default.html | 25 - .../demos/examples/theme material.html | 29 - .../demos/examples/theme micro.html | 30 - .../jscalendar/demos/year calendar dark.html | 136 -- .../jscalendar/demos/year calendar.html | 123 -- .../jscalendar/js/jsCalendar.datepicker.js | 396 ----- .../js/jsCalendar.datepicker.min.js | 40 - .../vendors/jscalendar/js/jsCalendar.js | 1480 ---------------- .../jscalendar/js/jsCalendar.lang.be.js | 59 - .../jscalendar/js/jsCalendar.lang.ca.js | 59 - .../jscalendar/js/jsCalendar.lang.de.js | 59 - .../jscalendar/js/jsCalendar.lang.es.js | 59 - .../jscalendar/js/jsCalendar.lang.fr.js | 59 - .../jscalendar/js/jsCalendar.lang.gr.js | 59 - .../jscalendar/js/jsCalendar.lang.hu.js | 59 - .../jscalendar/js/jsCalendar.lang.it.js | 59 - .../jscalendar/js/jsCalendar.lang.ja.js | 59 - .../jscalendar/js/jsCalendar.lang.nl.js | 59 - .../jscalendar/js/jsCalendar.lang.no.js | 59 - .../jscalendar/js/jsCalendar.lang.pt.js | 59 - .../jscalendar/js/jsCalendar.lang.ru.js | 59 - .../jscalendar/js/jsCalendar.lang.sk.js | 59 - .../jscalendar/js/jsCalendar.lang.sv.js | 59 - .../jscalendar/js/jsCalendar.lang.template.js | 65 - .../jscalendar/js/jsCalendar.lang.tr.js | 59 - .../jscalendar/js/jsCalendar.lang.uk.js | 59 - .../jscalendar/js/jsCalendar.lang.zh.js | 69 - .../vendors/jscalendar/js/jsCalendar.min.css | 29 - .../vendors/jscalendar/js/jsCalendar.min.js | 66 - backoffice/vendors/vcalendar/vcalendar.css | 114 -- backoffice/vendors/vcalendar/vcalendar.js | 127 -- .../vendors/vcalendar/vcalendar.min.css | 1 - backoffice/vendors/vcalendar/vcalendar.min.js | 1 - dev/sourcefiles.local.txt | 1455 ++++++++++++++++ dev/sourcefiles.remote.txt | 1503 +++++++++++++++++ 79 files changed, 2958 insertions(+), 6906 deletions(-) delete mode 100644 backoffice/vendors/jscalendar/css/jsCalendar.clean.css delete mode 100644 backoffice/vendors/jscalendar/css/jsCalendar.clean.min.css delete mode 100644 backoffice/vendors/jscalendar/css/jsCalendar.css delete mode 100644 backoffice/vendors/jscalendar/css/jsCalendar.darkseries.css delete mode 100644 backoffice/vendors/jscalendar/css/jsCalendar.darkseries.min.css delete mode 100644 backoffice/vendors/jscalendar/css/jsCalendar.micro.css delete mode 100644 backoffice/vendors/jscalendar/css/jsCalendar.micro.min.css delete mode 100644 backoffice/vendors/jscalendar/demos/LICENSE delete mode 100644 backoffice/vendors/jscalendar/demos/cdn-jsdelivr full demo.html delete mode 100644 backoffice/vendors/jscalendar/demos/cdn-jsdelivr minimal demo.html delete mode 100644 backoffice/vendors/jscalendar/demos/cdn-unpkg full demo.html delete mode 100644 backoffice/vendors/jscalendar/demos/cdn-unpkg minimal demo.html delete mode 100644 backoffice/vendors/jscalendar/demos/colorful selects.html delete mode 100644 backoffice/vendors/jscalendar/demos/date events.html delete mode 100644 backoffice/vendors/jscalendar/demos/date pickers.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/attribute version.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/calendar creation with selectors.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/calendar creation.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/calendar events.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/calendar object get set del.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/calendar options.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/calendar render handlers.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/extensions/datepicker.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/goto a date method.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/language parameter and methods setLanguage.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/languages.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/min max parameters and methods.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/next previous methods.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/parameters day format.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/parameters first day of the week.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/parameters month format.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/parameters navigator position.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/parameters navigator.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/parameters zero fill.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/refresh method.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/reset method.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/select unselect and clear days methods.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/set date method.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme classic.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme clean.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme colors all.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme colors.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme custom colors.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme darkseries.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme default.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme material.html delete mode 100644 backoffice/vendors/jscalendar/demos/examples/theme micro.html delete mode 100644 backoffice/vendors/jscalendar/demos/year calendar dark.html delete mode 100644 backoffice/vendors/jscalendar/demos/year calendar.html delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.datepicker.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.datepicker.min.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.be.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.ca.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.de.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.es.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.fr.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.gr.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.hu.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.it.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.ja.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.nl.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.no.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.pt.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.ru.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.sk.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.sv.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.template.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.tr.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.uk.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.lang.zh.js delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.min.css delete mode 100644 backoffice/vendors/jscalendar/js/jsCalendar.min.js delete mode 100644 backoffice/vendors/vcalendar/vcalendar.css delete mode 100644 backoffice/vendors/vcalendar/vcalendar.js delete mode 100644 backoffice/vendors/vcalendar/vcalendar.min.css delete mode 100644 backoffice/vendors/vcalendar/vcalendar.min.js create mode 100644 dev/sourcefiles.local.txt create mode 100644 dev/sourcefiles.remote.txt diff --git a/backoffice/vendors/jscalendar/css/jsCalendar.clean.css b/backoffice/vendors/jscalendar/css/jsCalendar.clean.css deleted file mode 100644 index b7ccb46..0000000 --- a/backoffice/vendors/jscalendar/css/jsCalendar.clean.css +++ /dev/null @@ -1,178 +0,0 @@ -/* - * jsCalendar theme - * Clean v1.1 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - - -/* Clean Theme */ - .jsCalendar.clean-theme table { - background-color: transparent; - box-shadow: none; - color: #000000; - font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif; - } - .jsCalendar.clean-theme thead .jsCalendar-title-name { - font-weight: bold; - } - .jsCalendar.clean-theme thead .jsCalendar-nav-left, - .jsCalendar.clean-theme thead .jsCalendar-nav-right { - color: #AFAFAF; - } - .jsCalendar.clean-theme thead .jsCalendar-nav-left:hover, - .jsCalendar.clean-theme thead .jsCalendar-nav-right:hover { - background-color: transparent; - color: #000000; - } - .jsCalendar.clean-theme thead .jsCalendar-week-days th { - font-weight: bold; - } - .jsCalendar.clean-theme thead .jsCalendar-week-days th, - .jsCalendar.clean-theme tbody td { - border-radius: unset; - font-size: 14px; - height: 42px; - line-height: 42px; - margin: 2px 2px; - width: 42px; - } - .jsCalendar.clean-theme tbody td:hover { - background-color: #F0F0F0; - color: #000000; - } - .jsCalendar.clean-theme tbody td.jsCalendar-selected { - border: unset; - } - .jsCalendar.clean-theme tbody td.jsCalendar-current { - background-color: transparent; - border-bottom: 2px solid #000000; - border-radius: unset; - color: #000000; - font-weight: bold; - margin-bottom: 0; - } - .jsCalendar.clean-theme tbody td.jsCalendar-selected { - background-color: #E0E0E0; - } - .jsCalendar.clean-theme tbody td.jsCalendar-current:hover { - color: #000000; - } - .jsCalendar.clean-theme tbody td.jsCalendar-previous, - .jsCalendar.clean-theme tbody td.jsCalendar-next { - color: transparent; - opacity: 0; - } - .jsCalendar.clean-theme tbody td.jsCalendar-previous:hover, - .jsCalendar.clean-theme tbody td.jsCalendar-next:hover { - color: transparent; - } - .jsCalendar.clean-theme ::-moz-selection { - background: #AFAFAF; - } - .jsCalendar.clean-theme ::selection { - background: #AFAFAF; - } - -/* Blue */ - .jsCalendar.clean-theme.blue tbody td:hover { - background-color: rgba(82, 201, 255, 0.3); - } - .jsCalendar.clean-theme.blue tbody td.jsCalendar-current { - background-color: rgba(82, 201, 255, 0.2); - } - .jsCalendar.clean-theme.blue tbody td.jsCalendar-selected { - background-color: rgba(82, 201, 255, 0.5); - } - .jsCalendar.clean-theme.blue ::-moz-selection { - background: #83D8FF; - } - .jsCalendar.clean-theme.blue ::selection { - background: #83D8FF; - } -/* Yellow */ - .jsCalendar.clean-theme.yellow tbody td:hover { - background-color: rgba(255, 227, 27, 0.3); - } - .jsCalendar.clean-theme.yellow tbody td.jsCalendar-current { - background-color: rgba(255, 227, 27, 0.2); - } - .jsCalendar.clean-theme.yellow tbody td.jsCalendar-selected { - background-color: rgba(255, 227, 27, 0.5); - } - .jsCalendar.clean-theme.yellow ::-moz-selection { - background: #FDE74C; - } - .jsCalendar.clean-theme.yellow ::selection { - background: #FDE74C; - } -/* Orange */ - .jsCalendar.clean-theme.orange tbody td:hover { - background-color: rgba(255, 180, 0, 0.3); - } - .jsCalendar.clean-theme.orange tbody td.jsCalendar-current { - background-color: rgba(255, 180, 0, 0.2); - } - .jsCalendar.clean-theme.orange tbody td.jsCalendar-selected { - background-color: rgba(255, 180, 0, 0.5); - } - .jsCalendar.clean-theme.orange ::-moz-selection { - background: #FFB400; - } - .jsCalendar.clean-theme.orange ::selection { - background: #FFB400; - } -/* Red */ - .jsCalendar.clean-theme.red tbody td:hover { - background-color: rgba(246, 81, 29, 0.3); - } - .jsCalendar.clean-theme.red tbody td.jsCalendar-current { - background-color: rgba(246, 81, 29, 0.2); - } - .jsCalendar.clean-theme.red tbody td.jsCalendar-selected { - background-color: rgba(246, 81, 29, 0.5); - } - .jsCalendar.clean-theme.red ::-moz-selection { - background: #F6511D; - } - .jsCalendar.clean-theme.red ::selection { - background: #F6511D; - } -/* Green */ - .jsCalendar.clean-theme.green tbody td:hover { - background-color: rgba(127, 184, 0, 0.3); - } - .jsCalendar.clean-theme.green tbody td.jsCalendar-current { - background-color: rgba(127, 184, 0, 0.2); - } - .jsCalendar.clean-theme.green tbody td.jsCalendar-selected { - background-color: rgba(127, 184, 0, 0.5); - } - .jsCalendar.clean-theme.green ::-moz-selection { - background: #7FB800; - } - .jsCalendar.clean-theme.green ::selection { - background: #7FB800; - } diff --git a/backoffice/vendors/jscalendar/css/jsCalendar.clean.min.css b/backoffice/vendors/jscalendar/css/jsCalendar.clean.min.css deleted file mode 100644 index 75c58c0..0000000 --- a/backoffice/vendors/jscalendar/css/jsCalendar.clean.min.css +++ /dev/null @@ -1,30 +0,0 @@ -/* - * jsCalendar theme - * Clean v1.1 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - -.jsCalendar.clean-theme thead .jsCalendar-title-name,.jsCalendar.clean-theme thead .jsCalendar-week-days th{font-weight:700}.jsCalendar.clean-theme table{background-color:transparent;box-shadow:none;color:#000;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif}.jsCalendar.clean-theme thead .jsCalendar-nav-left,.jsCalendar.clean-theme thead .jsCalendar-nav-right{color:#AFAFAF}.jsCalendar.clean-theme thead .jsCalendar-nav-left:hover,.jsCalendar.clean-theme thead .jsCalendar-nav-right:hover{background-color:transparent;color:#000}.jsCalendar.clean-theme tbody td,.jsCalendar.clean-theme thead .jsCalendar-week-days th{border-radius:unset;font-size:14px;height:42px;line-height:42px;margin:2px;width:42px}.jsCalendar.clean-theme tbody td:hover{background-color:#F0F0F0;color:#000}.jsCalendar.clean-theme tbody td.jsCalendar-selected{border:unset}.jsCalendar.clean-theme tbody td.jsCalendar-current{background-color:transparent;border-bottom:2px solid #000;border-radius:unset;color:#000;font-weight:700;margin-bottom:0}.jsCalendar.clean-theme tbody td.jsCalendar-selected{background-color:#E0E0E0}.jsCalendar.clean-theme tbody td.jsCalendar-current:hover{color:#000}.jsCalendar.clean-theme tbody td.jsCalendar-next,.jsCalendar.clean-theme tbody td.jsCalendar-previous{color:transparent;opacity:0}.jsCalendar.clean-theme tbody td.jsCalendar-next:hover,.jsCalendar.clean-theme tbody td.jsCalendar-previous:hover{color:transparent}.jsCalendar.clean-theme ::-moz-selection{background:#AFAFAF}.jsCalendar.clean-theme ::selection{background:#AFAFAF}.jsCalendar.clean-theme.blue tbody td:hover{background-color:rgba(82,201,255,.3)}.jsCalendar.clean-theme.blue tbody td.jsCalendar-current{background-color:rgba(82,201,255,.2)}.jsCalendar.clean-theme.blue tbody td.jsCalendar-selected{background-color:rgba(82,201,255,.5)}.jsCalendar.clean-theme.blue ::-moz-selection{background:#83D8FF}.jsCalendar.clean-theme.blue ::selection{background:#83D8FF}.jsCalendar.clean-theme.yellow tbody td:hover{background-color:rgba(255,227,27,.3)}.jsCalendar.clean-theme.yellow tbody td.jsCalendar-current{background-color:rgba(255,227,27,.2)}.jsCalendar.clean-theme.yellow tbody td.jsCalendar-selected{background-color:rgba(255,227,27,.5)}.jsCalendar.clean-theme.yellow ::-moz-selection{background:#FDE74C}.jsCalendar.clean-theme.yellow ::selection{background:#FDE74C}.jsCalendar.clean-theme.orange tbody td:hover{background-color:rgba(255,180,0,.3)}.jsCalendar.clean-theme.orange tbody td.jsCalendar-current{background-color:rgba(255,180,0,.2)}.jsCalendar.clean-theme.orange tbody td.jsCalendar-selected{background-color:rgba(255,180,0,.5)}.jsCalendar.clean-theme.orange ::-moz-selection{background:#FFB400}.jsCalendar.clean-theme.orange ::selection{background:#FFB400}.jsCalendar.clean-theme.red tbody td:hover{background-color:rgba(246,81,29,.3)}.jsCalendar.clean-theme.red tbody td.jsCalendar-current{background-color:rgba(246,81,29,.2)}.jsCalendar.clean-theme.red tbody td.jsCalendar-selected{background-color:rgba(246,81,29,.5)}.jsCalendar.clean-theme.red ::-moz-selection{background:#F6511D}.jsCalendar.clean-theme.red ::selection{background:#F6511D}.jsCalendar.clean-theme.green tbody td:hover{background-color:rgba(127,184,0,.3)}.jsCalendar.clean-theme.green tbody td.jsCalendar-current{background-color:rgba(127,184,0,.2)}.jsCalendar.clean-theme.green tbody td.jsCalendar-selected{background-color:rgba(127,184,0,.5)}.jsCalendar.clean-theme.green ::-moz-selection{background:#7FB800}.jsCalendar.clean-theme.green ::selection{background:#7FB800} diff --git a/backoffice/vendors/jscalendar/css/jsCalendar.css b/backoffice/vendors/jscalendar/css/jsCalendar.css deleted file mode 100644 index f1597e0..0000000 --- a/backoffice/vendors/jscalendar/css/jsCalendar.css +++ /dev/null @@ -1,391 +0,0 @@ -/* - * jsCalendar v1.4.4 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - - -/* Default Theme */ - /* General style */ - .jsCalendar * { - margin: 0; - padding: 0; - } - .jsCalendar table, - .jsCalendar table th, - .jsCalendar table td { - border: 0; - } - /* Blue default */ - .jsCalendar table { - background-color: #FFFFFF; - border-collapse: collapse; - border-radius: 4px; - box-shadow: 0 0 2px rgba(0, 0, 0, 0.4); - color: #000000; - font-family: Tahoma, Geneva, sans-serif; - margin: 5px; - } - .jsCalendar thead .jsCalendar-title { - height: 40px; - line-height: 40px; - } - .jsCalendar thead .jsCalendar-title-left { - float: left; - } - .jsCalendar thead .jsCalendar-title-right { - float: right; - } - .jsCalendar thead .jsCalendar-nav-left, - .jsCalendar thead .jsCalendar-nav-right { - border-radius: 10px; - color: #999999; - cursor: pointer; - font-family: "Courier New", Courier, monospace; - font-size: 12px; - font-weight: bold; - height: 20px; - line-height: 20px; - margin: 10px 8px; - text-align: center; - transition: color 0.2s, background-color 0.2s; - width: 20px; - } - .jsCalendar thead .jsCalendar-nav-left:hover, - .jsCalendar thead .jsCalendar-nav-right:hover { - background-color: #E2E2E2; - color: #000000; - } - .jsCalendar thead .jsCalendar-nav-left { - float: left; - } - .jsCalendar thead .jsCalendar-nav-right { - float: right; - } - .jsCalendar thead .jsCalendar-title-name { - cursor: default; - float: left; - font-size: 18px; - font-weight: lighter; - padding: 0 20px; - } - .jsCalendar thead .jsCalendar-nav-left:after { - content: "<"; - } - .jsCalendar thead .jsCalendar-nav-right:after { - content: ">"; - } - .jsCalendar thead .jsCalendar-week-days th { - text-shadow: 0 0 1px rgba(0, 0, 0, 0.2); - } - .jsCalendar thead .jsCalendar-week-days th, - .jsCalendar tbody td { - border-radius: 18px; - cursor: default; - display: inline-block; - font-size: 12px; - font-weight: lighter; - height: 36px; - line-height: 36px; - margin: 1px 2px; - text-align: center; - transition: color 0.1s, background-color 0.2s; - width: 36px; - } - .jsCalendar tbody td:hover { - background-color: #E6E6E6; - } - .jsCalendar tbody td.jsCalendar-selected { - background-color: #FFFFFF; - border: 2px solid #E6E6E6; - box-sizing: content-box; - height: 32px; - line-height: 32px; - width: 32px; - } - .jsCalendar tbody td.jsCalendar-current { - background-color: #52C9FF; - border-radius: 18px; - color: #FFFFFF; - } - .jsCalendar tbody td.jsCalendar-previous, - .jsCalendar tbody td.jsCalendar-next { - color: #CACACA; - } - .jsCalendar tbody td.jsCalendar-previous:hover, - .jsCalendar tbody td.jsCalendar-next:hover { - color: #FFFFFF; - } - - .jsCalendar thead { - display: block; - margin: 4px 4px 0 4px; - } - .jsCalendar tbody { - display: block; - margin: 0 4px 4px 4px; - } - .jsCalendar ::-moz-selection { - background: #83D8FF; - } - .jsCalendar ::selection { - background: #83D8FF; - } - /* Yellow */ - .jsCalendar.yellow tbody td.jsCalendar-current { - background-color: #FFE31B; - } - .jsCalendar.yellow ::-moz-selection { - background: #FDE74C; - } - .jsCalendar.yellow ::selection { - background: #FDE74C; - } - /* Orange */ - .jsCalendar.orange tbody td.jsCalendar-current { - background-color: #FFB400; - } - .jsCalendar.orange ::-moz-selection { - background: #FFB400; - } - .jsCalendar.orange ::selection { - background: #FFB400; - } - /* Red */ - .jsCalendar.red tbody td.jsCalendar-current { - background-color: #F6511D; - } - .jsCalendar.red ::-moz-selection { - background: #F6511D; - } - .jsCalendar.red ::selection { - background: #F6511D; - } - /* Green */ - .jsCalendar.green tbody td.jsCalendar-current { - background-color: #7FB800; - } - .jsCalendar.green ::-moz-selection { - background: #7FB800; - } - .jsCalendar.green ::selection { - background: #7FB800; - } - - -/* Material Theme */ - /* Blue default */ - .jsCalendar.material-theme table { - border-radius: 0; - } - .jsCalendar.material-theme thead { - background-color: #52C9FF; - color: #FFFFFF; - margin: 0; - padding: 4px 4px 0 4px; - } - .jsCalendar.material-theme thead .jsCalendar-title { - display: block; - position: relative; - } - .jsCalendar.material-theme thead .jsCalendar-title-name { - border-bottom: 1px solid rgba(255, 255, 255, 0.4); - color: #FFFFFF; - font-size: 16px; - left: 15px; - position: absolute; - right: 15px; - text-align: center; - } - .jsCalendar.material-theme thead .jsCalendar-title-left, - .jsCalendar.material-theme thead .jsCalendar-title-right { - position: absolute; - z-index: 1; - } - .jsCalendar.material-theme thead .jsCalendar-nav-left, - .jsCalendar.material-theme thead .jsCalendar-nav-right { - color: #FFFFFF; - } - .jsCalendar.material-theme thead .jsCalendar-nav-left:hover, - .jsCalendar.material-theme thead .jsCalendar-nav-right:hover { - background-color: #03A9F4; - } - .jsCalendar.material-theme thead .jsCalendar-title-right { - right: 0; - } - .jsCalendar.material-theme thead .jsCalendar-week-days th { - font-size: 14px; - text-shadow: none; - } - /* Yellow */ - .jsCalendar.material-theme.yellow thead { - background-color: #FFE31B; - } - .jsCalendar.material-theme.yellow thead .jsCalendar-nav-left:hover, - .jsCalendar.material-theme.yellow thead .jsCalendar-nav-right:hover { - background-color: #E2CA23; - } - /* Orange */ - .jsCalendar.material-theme.orange thead { - background-color: #FFB400; - } - .jsCalendar.material-theme.orange thead .jsCalendar-nav-left:hover, - .jsCalendar.material-theme.orange thead .jsCalendar-nav-right:hover { - background-color: #D49600; - } - /* Red */ - .jsCalendar.material-theme.red thead { - background-color: #F6511D; - } - .jsCalendar.material-theme.red thead .jsCalendar-nav-left:hover, - .jsCalendar.material-theme.red thead .jsCalendar-nav-right:hover { - background-color: #BB3D16; - } - /* Green */ - .jsCalendar.material-theme.green thead { - background-color: #7FB800; - } - .jsCalendar.material-theme.green thead .jsCalendar-nav-left:hover, - .jsCalendar.material-theme.green thead .jsCalendar-nav-right:hover { - background-color: #639000; - } - - - -/* Classic Theme */ - /* Blue default */ - .jsCalendar.classic-theme table, - .jsCalendar.classic-theme thead .jsCalendar-nav-left, - .jsCalendar.classic-theme thead .jsCalendar-nav-right, - .jsCalendar.classic-theme thead .jsCalendar-week-days th, - .jsCalendar.classic-theme tbody td, - .jsCalendar.classic-theme tbody td.jsCalendar-current { - border-radius: 0; - } - .jsCalendar.classic-theme thead { - background-color: #52C9FF; - margin: 0; - padding: 4px 4px 0 4px; - } - .jsCalendar.classic-theme thead .jsCalendar-title-row, - .jsCalendar.classic-theme thead .jsCalendar-title { - display: block; - width: 100%; - } - .jsCalendar.classic-theme thead .jsCalendar-title { - position: relative; - } - .jsCalendar.classic-theme thead .jsCalendar-title-name { - color: #FFFFFF; - font-size: 16px; - left: 41px; - position: absolute; - right: 41px; - text-align: center; - text-shadow: none; - } - .jsCalendar.classic-theme thead .jsCalendar-title-left, - .jsCalendar.classic-theme thead .jsCalendar-title-right { - position: absolute; - z-index: 1; - } - .jsCalendar.classic-theme thead .jsCalendar-title-right { - right: 0; - } - .jsCalendar.classic-theme thead .jsCalendar-nav-left, - .jsCalendar.classic-theme thead .jsCalendar-nav-right { - color: #FFFFFF; - text-shadow: none; - } - .jsCalendar.classic-theme thead .jsCalendar-nav-left:hover, - .jsCalendar.classic-theme thead .jsCalendar-nav-right:hover { - background-color: #03A9F4; - } - .jsCalendar.classic-theme thead .jsCalendar-week-days { - background-color: #FFFFFF; - display: block; - margin: 0 -4px; - } - .jsCalendar.classic-theme thead .jsCalendar-week-days th { - font-size: 10px; - height: 20px; - line-height: 20px; - text-shadow: none; - } - .jsCalendar.classic-theme tbody td { - border-left: 1px solid #DADADA; - border-top: 1px solid #DADADA; - margin: -1px 0 0 -1px; - padding: 1px 1px 0 1px; - width: 38px; - } - .jsCalendar.classic-theme tbody { - margin: 0; - } - .jsCalendar.classic-theme tbody td.jsCalendar-selected{ - background-color: #CCEFFF; - border-bottom: 0; - border-left: 1px solid #DADADA; - border-right: 0; - border-top: 1px solid #DADADA; - height: 36px; - line-height: 36px; - } - .jsCalendar.classic-theme tbody td.jsCalendar-current.jsCalendar-selected{ - background-color: #52C9FF; - text-shadow: 0 0 3px #000000; - } - /* Yellow */ - .jsCalendar.classic-theme.yellow thead { - background-color: #FFE31B; - } - .jsCalendar.classic-theme.yellow thead .jsCalendar-nav-left:hover, - .jsCalendar.classic-theme.yellow thead .jsCalendar-nav-right:hover { - background-color: #E2CA23; - } - /* Orange */ - .jsCalendar.classic-theme.orange thead { - background-color: #FFB400; - } - .jsCalendar.classic-theme.orange thead .jsCalendar-nav-left:hover, - .jsCalendar.classic-theme.orange thead .jsCalendar-nav-right:hover { - background-color: #D49600; - } - /* Red */ - .jsCalendar.classic-theme.red thead { - background-color: #F6511D; - } - .jsCalendar.classic-theme.red thead .jsCalendar-nav-left:hover, - .jsCalendar.classic-theme.red thead .jsCalendar-nav-right:hover { - background-color: #BB3D16; - } - /* Green */ - .jsCalendar.classic-theme.green thead { - background-color: #7FB800; - } - .jsCalendar.classic-theme.green thead .jsCalendar-nav-left:hover, - .jsCalendar.classic-theme.green thead .jsCalendar-nav-right:hover { - background-color: #639000; - } diff --git a/backoffice/vendors/jscalendar/css/jsCalendar.darkseries.css b/backoffice/vendors/jscalendar/css/jsCalendar.darkseries.css deleted file mode 100644 index 2b7b75e..0000000 --- a/backoffice/vendors/jscalendar/css/jsCalendar.darkseries.css +++ /dev/null @@ -1,159 +0,0 @@ -/* - * jsCalendar theme - * DarkSeries v1.2 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - - -/* Black Theme */ - .jsCalendar.black-theme table { - background-color: #000000; - box-shadow: 0 0 2px rgba(80, 80, 80, 0.4); - color: #CCCCCC; - } - .jsCalendar.black-theme thead .jsCalendar-nav-left, - .jsCalendar.black-theme thead .jsCalendar-nav-right { - color: #505050; - } - .jsCalendar.black-theme thead .jsCalendar-nav-left:hover, - .jsCalendar.black-theme thead .jsCalendar-nav-right:hover { - background-color: #252525; - color: #AAAAAA; - } - .jsCalendar.black-theme tbody td.jsCalendar-selected { - background-color: #000000; - border: 2px solid #404040; - } - .jsCalendar.black-theme tbody td:hover { - background-color: #252525; - color: #FFFFFF; - } - .jsCalendar.black-theme tbody td.jsCalendar-current { - background-color: #252525; - } - .jsCalendar.black-theme tbody td.jsCalendar-previous, - .jsCalendar.black-theme tbody td.jsCalendar-next { - color: #505050; - } - .jsCalendar.black-theme tbody td.jsCalendar-previous:hover, - .jsCalendar.black-theme tbody td.jsCalendar-next:hover { - color: #FFFFFF; - } - .jsCalendar.black-theme ::-moz-selection { - background: #505050; - } - .jsCalendar.black-theme ::selection { - background: #505050; - } - - -/* Grey Theme */ - .jsCalendar.grey-theme table { - background-color: #E3E6EB; - box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); - color: #242529; - } - .jsCalendar.grey-theme thead .jsCalendar-nav-left, - .jsCalendar.grey-theme thead .jsCalendar-nav-right { - color: #717580; - } - .jsCalendar.grey-theme thead .jsCalendar-nav-left:hover, - .jsCalendar.grey-theme thead .jsCalendar-nav-right:hover { - background-color: #717580; - color: #E3E6EB; - } - .jsCalendar.grey-theme tbody td.jsCalendar-selected { - background-color: transparent; - border: 2px solid #A3A6AE; - } - .jsCalendar.grey-theme tbody td:hover { - background-color: #717580; - color: #E3E6EB; - } - .jsCalendar.grey-theme tbody td.jsCalendar-current { - background-color: #42454C; - } - .jsCalendar.grey-theme tbody td.jsCalendar-current:hover { - color: #E3E6EB; - } - .jsCalendar.grey-theme tbody td.jsCalendar-previous, - .jsCalendar.grey-theme tbody td.jsCalendar-next { - color: #B0B4BD; - } - .jsCalendar.grey-theme tbody td.jsCalendar-previous:hover, - .jsCalendar.grey-theme tbody td.jsCalendar-next:hover { - color: #E3E6EB; - } - .jsCalendar.grey-theme ::-moz-selection { - background: #B0B4BD; - } - .jsCalendar.grey-theme ::selection { - background: #B0B4BD; - } - - -/* White Theme */ - .jsCalendar.white-theme table { - background-color: #ffffff; - box-shadow: 0 0 2px rgba(80, 80, 80, 0.4); - color: #333333; - } - .jsCalendar.white-theme thead .jsCalendar-nav-left, - .jsCalendar.white-theme thead .jsCalendar-nav-right { - color: #AFAFAF; - } - .jsCalendar.white-theme thead .jsCalendar-nav-left:hover, - .jsCalendar.white-theme thead .jsCalendar-nav-right:hover { - background-color: #DADADA; - color: #555555; - } - .jsCalendar.white-theme tbody td:hover { - background-color: #DADADA; - color: #000000; - } - .jsCalendar.white-theme tbody td.jsCalendar-selected { - border: 2px solid #BFBFBF; - } - .jsCalendar.white-theme tbody td.jsCalendar-current { - background-color: #222222; - } - .jsCalendar.white-theme tbody td.jsCalendar-current:hover { - color: #FFFFFF; - } - .jsCalendar.white-theme tbody td.jsCalendar-previous, - .jsCalendar.white-theme tbody td.jsCalendar-next { - color: #AFAFAF; - } - .jsCalendar.white-theme tbody td.jsCalendar-previous:hover, - .jsCalendar.white-theme tbody td.jsCalendar-next:hover { - color: #000000; - } - .jsCalendar.white-theme ::-moz-selection { - background: #AFAFAF; - } - .jsCalendar.white-theme ::selection { - background: #AFAFAF; - } diff --git a/backoffice/vendors/jscalendar/css/jsCalendar.darkseries.min.css b/backoffice/vendors/jscalendar/css/jsCalendar.darkseries.min.css deleted file mode 100644 index ab81fba..0000000 --- a/backoffice/vendors/jscalendar/css/jsCalendar.darkseries.min.css +++ /dev/null @@ -1,30 +0,0 @@ -/* - * jsCalendar theme - * DarkSeries v1.2 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - -.jsCalendar.black-theme table{background-color:#000;box-shadow:0 0 2px rgba(80,80,80,.4);color:#CCC}.jsCalendar.black-theme thead .jsCalendar-nav-left,.jsCalendar.black-theme thead .jsCalendar-nav-right{color:#505050}.jsCalendar.black-theme thead .jsCalendar-nav-left:hover,.jsCalendar.black-theme thead .jsCalendar-nav-right:hover{background-color:#252525;color:#AAA}.jsCalendar.black-theme tbody td.jsCalendar-selected{background-color:#000;border:2px solid #404040}.jsCalendar.black-theme tbody td:hover{background-color:#252525;color:#FFF}.jsCalendar.black-theme tbody td.jsCalendar-current{background-color:#252525}.jsCalendar.black-theme tbody td.jsCalendar-next,.jsCalendar.black-theme tbody td.jsCalendar-previous{color:#505050}.jsCalendar.black-theme tbody td.jsCalendar-next:hover,.jsCalendar.black-theme tbody td.jsCalendar-previous:hover{color:#FFF}.jsCalendar.black-theme ::-moz-selection{background:#505050}.jsCalendar.black-theme ::selection{background:#505050}.jsCalendar.grey-theme table{background-color:#E3E6EB;box-shadow:0 0 2px rgba(0,0,0,.5);color:#242529}.jsCalendar.grey-theme thead .jsCalendar-nav-left,.jsCalendar.grey-theme thead .jsCalendar-nav-right{color:#717580}.jsCalendar.grey-theme thead .jsCalendar-nav-left:hover,.jsCalendar.grey-theme thead .jsCalendar-nav-right:hover{background-color:#717580;color:#E3E6EB}.jsCalendar.grey-theme tbody td.jsCalendar-selected{background-color:transparent;border:2px solid #A3A6AE}.jsCalendar.grey-theme tbody td:hover{background-color:#717580;color:#E3E6EB}.jsCalendar.grey-theme tbody td.jsCalendar-current{background-color:#42454C}.jsCalendar.grey-theme tbody td.jsCalendar-current:hover{color:#E3E6EB}.jsCalendar.grey-theme tbody td.jsCalendar-next,.jsCalendar.grey-theme tbody td.jsCalendar-previous{color:#B0B4BD}.jsCalendar.grey-theme tbody td.jsCalendar-next:hover,.jsCalendar.grey-theme tbody td.jsCalendar-previous:hover{color:#E3E6EB}.jsCalendar.grey-theme ::-moz-selection{background:#B0B4BD}.jsCalendar.grey-theme ::selection{background:#B0B4BD}.jsCalendar.white-theme table{background-color:#fff;box-shadow:0 0 2px rgba(80,80,80,.4);color:#333}.jsCalendar.white-theme thead .jsCalendar-nav-left,.jsCalendar.white-theme thead .jsCalendar-nav-right{color:#AFAFAF}.jsCalendar.white-theme thead .jsCalendar-nav-left:hover,.jsCalendar.white-theme thead .jsCalendar-nav-right:hover{background-color:#DADADA;color:#555}.jsCalendar.white-theme tbody td:hover{background-color:#DADADA;color:#000}.jsCalendar.white-theme tbody td.jsCalendar-selected{border:2px solid #BFBFBF}.jsCalendar.white-theme tbody td.jsCalendar-current{background-color:#222}.jsCalendar.white-theme tbody td.jsCalendar-current:hover{color:#FFF}.jsCalendar.white-theme tbody td.jsCalendar-next,.jsCalendar.white-theme tbody td.jsCalendar-previous{color:#AFAFAF}.jsCalendar.white-theme tbody td.jsCalendar-next:hover,.jsCalendar.white-theme tbody td.jsCalendar-previous:hover{color:#000}.jsCalendar.white-theme ::-moz-selection{background:#AFAFAF}.jsCalendar.white-theme ::selection{background:#AFAFAF} diff --git a/backoffice/vendors/jscalendar/css/jsCalendar.micro.css b/backoffice/vendors/jscalendar/css/jsCalendar.micro.css deleted file mode 100644 index ddc2a75..0000000 --- a/backoffice/vendors/jscalendar/css/jsCalendar.micro.css +++ /dev/null @@ -1,58 +0,0 @@ -/* - * jsCalendar theme - * Micro v1.2.1 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - - -/* Micro Theme */ - .jsCalendar.micro-theme thead .jsCalendar-title { - height: 20px; - line-height: 20px; - } - .jsCalendar.micro-theme thead .jsCalendar-title-name { - font-size: 14px; - padding: 0 5px; - } - .jsCalendar.micro-theme thead .jsCalendar-nav-left, .jsCalendar.micro-theme thead .jsCalendar-nav-right { - font-size: 12px; - height: 20px; - line-height: 20px; - margin: 0; - width: 20px; - } - .jsCalendar.micro-theme thead .jsCalendar-week-days th, .jsCalendar.micro-theme tbody td { - height: 20px; - line-height: 20px; - margin: 0; - width: 20px; - } - .jsCalendar.micro-theme.classic-theme thead .jsCalendar-week-days th { - width: 23px; - } - .jsCalendar.micro-theme.classic-theme thead .jsCalendar-week-days th, .jsCalendar.micro-theme.classic-theme tbody td { - margin: -1px 0 0 -1px; - } \ No newline at end of file diff --git a/backoffice/vendors/jscalendar/css/jsCalendar.micro.min.css b/backoffice/vendors/jscalendar/css/jsCalendar.micro.min.css deleted file mode 100644 index 1990932..0000000 --- a/backoffice/vendors/jscalendar/css/jsCalendar.micro.min.css +++ /dev/null @@ -1,30 +0,0 @@ -/* - * jsCalendar theme - * Micro v1.2.1 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - -.jsCalendar.micro-theme thead .jsCalendar-title{height:20px;line-height:20px}.jsCalendar.micro-theme thead .jsCalendar-title-name{font-size:14px;padding:0 5px}.jsCalendar.micro-theme thead .jsCalendar-nav-left,.jsCalendar.micro-theme thead .jsCalendar-nav-right{font-size:12px;height:20px;line-height:20px;margin:0;width:20px}.jsCalendar.micro-theme tbody td,.jsCalendar.micro-theme thead .jsCalendar-week-days th{height:20px;line-height:20px;margin:0;width:20px}.jsCalendar.micro-theme.classic-theme thead .jsCalendar-week-days th{width:23px}.jsCalendar.micro-theme.classic-theme tbody td,.jsCalendar.micro-theme.classic-theme thead .jsCalendar-week-days th{margin:-1px 0 0 -1px} diff --git a/backoffice/vendors/jscalendar/demos/LICENSE b/backoffice/vendors/jscalendar/demos/LICENSE deleted file mode 100644 index 3ffb597..0000000 --- a/backoffice/vendors/jscalendar/demos/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Grammatopoulos Athanasios-Vasileios - -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/backoffice/vendors/jscalendar/demos/cdn-jsdelivr full demo.html b/backoffice/vendors/jscalendar/demos/cdn-jsdelivr full demo.html deleted file mode 100644 index e671ded..0000000 --- a/backoffice/vendors/jscalendar/demos/cdn-jsdelivr full demo.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Minimal jsCalendar Demo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/backoffice/vendors/jscalendar/demos/cdn-jsdelivr minimal demo.html b/backoffice/vendors/jscalendar/demos/cdn-jsdelivr minimal demo.html deleted file mode 100644 index 2e00654..0000000 --- a/backoffice/vendors/jscalendar/demos/cdn-jsdelivr minimal demo.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Minimal jsCalendar Demo - - - - - - - -
- - diff --git a/backoffice/vendors/jscalendar/demos/cdn-unpkg full demo.html b/backoffice/vendors/jscalendar/demos/cdn-unpkg full demo.html deleted file mode 100644 index 3949132..0000000 --- a/backoffice/vendors/jscalendar/demos/cdn-unpkg full demo.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Minimal jsCalendar Demo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/backoffice/vendors/jscalendar/demos/cdn-unpkg minimal demo.html b/backoffice/vendors/jscalendar/demos/cdn-unpkg minimal demo.html deleted file mode 100644 index 658e026..0000000 --- a/backoffice/vendors/jscalendar/demos/cdn-unpkg minimal demo.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Minimal jsCalendar Demo - - - - - - - -
- - diff --git a/backoffice/vendors/jscalendar/demos/colorful selects.html b/backoffice/vendors/jscalendar/demos/colorful selects.html deleted file mode 100644 index c5e4cd6..0000000 --- a/backoffice/vendors/jscalendar/demos/colorful selects.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - jsCalendar Demo - - - - - - - - - - - - - -
-
Colorful select
-
Rainbows
-
- -
- -
-
- - - - -


-
- You are using jsCalendar -
- - diff --git a/backoffice/vendors/jscalendar/demos/date events.html b/backoffice/vendors/jscalendar/demos/date events.html deleted file mode 100644 index 8a65586..0000000 --- a/backoffice/vendors/jscalendar/demos/date events.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - jsCalendar Demo - - - - - - - - - - - - - - -
-
Date Events
-
Demo calendar date events using jsCalendar
-
- - -
- -
- -
- -
-
-
- - - - -
-
- You are using jsCalendar -
- - diff --git a/backoffice/vendors/jscalendar/demos/date pickers.html b/backoffice/vendors/jscalendar/demos/date pickers.html deleted file mode 100644 index af056db..0000000 --- a/backoffice/vendors/jscalendar/demos/date pickers.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - -
- Date Pickers Examples
- - Example 1 : - -
- - Example 2 : - -
- - Example 3 : - -
- -
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/attribute version.html b/backoffice/vendors/jscalendar/demos/examples/attribute version.html deleted file mode 100644 index d5d14ab..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/attribute version.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - You are using jsCalendar - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/calendar creation with selectors.html b/backoffice/vendors/jscalendar/demos/examples/calendar creation with selectors.html deleted file mode 100644 index 40bd69a..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/calendar creation with selectors.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - - -
-
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/calendar creation.html b/backoffice/vendors/jscalendar/demos/examples/calendar creation.html deleted file mode 100644 index 1e8aeb7..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/calendar creation.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - - -
- - - - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/calendar events.html b/backoffice/vendors/jscalendar/demos/examples/calendar events.html deleted file mode 100644 index f5ecd51..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/calendar events.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - Day click :
-
- Month change :
-
- - - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/calendar object get set del.html b/backoffice/vendors/jscalendar/demos/examples/calendar object get set del.html deleted file mode 100644 index cc463ff..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/calendar object get set del.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - - - -
- - - - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/calendar options.html b/backoffice/vendors/jscalendar/demos/examples/calendar options.html deleted file mode 100644 index a9f8276..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/calendar options.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - - -
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/calendar render handlers.html b/backoffice/vendors/jscalendar/demos/examples/calendar render handlers.html deleted file mode 100644 index 22b6c8d..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/calendar render handlers.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - -
- - - - - - -
- - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/extensions/datepicker.html b/backoffice/vendors/jscalendar/demos/examples/extensions/datepicker.html deleted file mode 100644 index 52e2a71..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/extensions/datepicker.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - jsCalendar datepicker - - - - - - - - - - - - - - - Example 1
- -
-
- - Example 2
- -
-
- - Example 3
- -
-
- - Example 4
- -
-
- - - - Example 5
- -
-
- - - - Example 6
- - - -
-
- - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/goto a date method.html b/backoffice/vendors/jscalendar/demos/examples/goto a date method.html deleted file mode 100644 index 1e97349..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/goto a date method.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - - -
- - - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/language parameter and methods setLanguage.html b/backoffice/vendors/jscalendar/demos/examples/language parameter and methods setLanguage.html deleted file mode 100644 index 66990cd..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/language parameter and methods setLanguage.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - - - - -
- - - - - -
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/languages.html b/backoffice/vendors/jscalendar/demos/examples/languages.html deleted file mode 100644 index 07666e2..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/languages.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - English -
-
- - - German -
-
- - - Spanish -
-
- - - French -
-
- - - Greek -
-
- - - Hungarian -
-
- - - Italian -
-
- - - Japanese -
-
- - - Norwegian -
-
- - - Portuguese -
-
- - - Russian -
-
- - - Slovak -
-
- - - Turkish -
-
- - - Ukrainian -
-
- - - Chinese -
-
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/min max parameters and methods.html b/backoffice/vendors/jscalendar/demos/examples/min max parameters and methods.html deleted file mode 100644 index 6fdf22f..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/min max parameters and methods.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - -

Min-date 01/01/2017 (January 2017 and later)

- - -
- - - - -
- - - -

Max-date 01/03/2017 (before March 2017)

- - -
- - - - -
- - - -

Min-date 01/02/2017 and Max-date 01/02/2017 (between January 2017 and March 2017)

- - -
- - - - -
- - - -

Only current month

- -
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/next previous methods.html b/backoffice/vendors/jscalendar/demos/examples/next previous methods.html deleted file mode 100644 index 90c3e67..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/next previous methods.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/parameters day format.html b/backoffice/vendors/jscalendar/demos/examples/parameters day format.html deleted file mode 100644 index 7478ea4..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/parameters day format.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - -
- - -
- - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/parameters first day of the week.html b/backoffice/vendors/jscalendar/demos/examples/parameters first day of the week.html deleted file mode 100644 index 0d00ccf..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/parameters first day of the week.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - -
- - -
- - -
- - -
- - -
- - - -
- - - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/parameters month format.html b/backoffice/vendors/jscalendar/demos/examples/parameters month format.html deleted file mode 100644 index 6f95974..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/parameters month format.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - -
- - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/parameters navigator position.html b/backoffice/vendors/jscalendar/demos/examples/parameters navigator position.html deleted file mode 100644 index bfd1825..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/parameters navigator position.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/parameters navigator.html b/backoffice/vendors/jscalendar/demos/examples/parameters navigator.html deleted file mode 100644 index 5de9888..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/parameters navigator.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/parameters zero fill.html b/backoffice/vendors/jscalendar/demos/examples/parameters zero fill.html deleted file mode 100644 index 891b17f..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/parameters zero fill.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/refresh method.html b/backoffice/vendors/jscalendar/demos/examples/refresh method.html deleted file mode 100644 index d59ebeb..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/refresh method.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/reset method.html b/backoffice/vendors/jscalendar/demos/examples/reset method.html deleted file mode 100644 index f0c7db1..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/reset method.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/select unselect and clear days methods.html b/backoffice/vendors/jscalendar/demos/examples/select unselect and clear days methods.html deleted file mode 100644 index 403a2a5..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/select unselect and clear days methods.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - - -
- - - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/set date method.html b/backoffice/vendors/jscalendar/demos/examples/set date method.html deleted file mode 100644 index bdf9522..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/set date method.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - -
- - - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme classic.html b/backoffice/vendors/jscalendar/demos/examples/theme classic.html deleted file mode 100644 index e4ef1d8..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme classic.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme clean.html b/backoffice/vendors/jscalendar/demos/examples/theme clean.html deleted file mode 100644 index 9682901..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme clean.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - -
- - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme colors all.html b/backoffice/vendors/jscalendar/demos/examples/theme colors all.html deleted file mode 100644 index 3ef08bc..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme colors all.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - Simple Theme - -
- -
- -
- -
- -
-

- - Material Theme - -
- -
- -
- -
- -
-

- - Classic Theme - -
- -
- -
- -
- -
-

- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme colors.html b/backoffice/vendors/jscalendar/demos/examples/theme colors.html deleted file mode 100644 index b977f98..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme colors.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- -
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme custom colors.html b/backoffice/vendors/jscalendar/demos/examples/theme custom colors.html deleted file mode 100644 index 22b9e0a..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme custom colors.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - - - -
-
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme darkseries.html b/backoffice/vendors/jscalendar/demos/examples/theme darkseries.html deleted file mode 100644 index 3fd3a80..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme darkseries.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - -
- -
- -
- - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme default.html b/backoffice/vendors/jscalendar/demos/examples/theme default.html deleted file mode 100644 index 28530dd..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme default.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme material.html b/backoffice/vendors/jscalendar/demos/examples/theme material.html deleted file mode 100644 index 55d9915..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme material.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - -
- - - - - diff --git a/backoffice/vendors/jscalendar/demos/examples/theme micro.html b/backoffice/vendors/jscalendar/demos/examples/theme micro.html deleted file mode 100644 index d68d75e..0000000 --- a/backoffice/vendors/jscalendar/demos/examples/theme micro.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - jsCalendar - - - - - - - - - - - - - - -
- - - - - diff --git a/backoffice/vendors/jscalendar/demos/year calendar dark.html b/backoffice/vendors/jscalendar/demos/year calendar dark.html deleted file mode 100644 index 264ba9e..0000000 --- a/backoffice/vendors/jscalendar/demos/year calendar dark.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - jsCalendar Demo - - - - - - - - - - - - - - -
-
Year calendar
-
Demo full year calendar using jsCalendar
-
Try to print it [Ctrl+P]
-
- - -
- - - - -
- jsCalendar -
- - diff --git a/backoffice/vendors/jscalendar/demos/year calendar.html b/backoffice/vendors/jscalendar/demos/year calendar.html deleted file mode 100644 index 1a3debb..0000000 --- a/backoffice/vendors/jscalendar/demos/year calendar.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - jsCalendar Demo - - - - - - - - - - - - - - -
-
Year calendar
-
Demo full year calendar using jsCalendar
-
Try to print it [Ctrl+P]
-
- - -
- - - - -
- jsCalendar -
- - diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.datepicker.js b/backoffice/vendors/jscalendar/js/jsCalendar.datepicker.js deleted file mode 100644 index 1371444..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.datepicker.js +++ /dev/null @@ -1,396 +0,0 @@ -/* - * jsCalendar extension - * DatePicker v1.0.1 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - -(function($){ - // Check if no jsCalendar library - if (!$) throw 'Error jsCalendar library was not found'; - - // Extension Object - var _ = {}; - _.options = { - format : 'DD/MM/YYYY', - offsetTop : 2, - offsetLeft : -4, - close_keycodes : [9, 27, 13], // TAB 9, ESC 27, ENTER 13 - class : 'jsCalendar-datepicker-wrappper' - }; - - // Constructor - var DatePicker = function () { - // No parameters - if (arguments.length === 0) { - // Do nothing - return; - } - else { - // Construct datepicker - this._construct(arguments); - } - }; - - // Version - DatePicker.version = 'v1.0.1-beta'; - - // Sub-Constructor - DatePicker.prototype._construct = function(args) { - // Parse arguments - args = this._parseArguments(args); - // Set a target - this._setTarget(args.target); - - // Parse options - var calendar_options = this._parseOptions(args.options); - - // Create calendar - this._visible = false; - this._wrapper = document.createElement('div'); - this._wrapper.className = this._options.class; - this._wrapper.style.display = 'none'; - this._wrapper.style.position = 'absolute'; - document.body.appendChild(this._wrapper); - - calendar_options.target = this._wrapper; - this.jsCalendar = new $(calendar_options); - - // If date was defined - if (calendar_options.hasOwnProperty('date')) { - // Set input date - this._target.value = $.tools.dateToString( - $.tools.parseDate(calendar_options.date), - this._options.format, - this.jsCalendar._options.language - ); - } - - // Add target listeners - var dp = this; - // Calendar click handler - this.jsCalendar.onDateClick(function(event, date) {dp._onPick(date);}); - // Focus handler - this._target.addEventListener('focus', function() {dp._onFocus();}, false); - this._target.addEventListener('keydown', function(event) {if (dp._options.close_keycodes.indexOf(event.keyCode) >= 0) dp.hide();}, false); - // Kill calendar click bubble - this.jsCalendar._elements.table.addEventListener('click', function(event) {event.stopPropagation();}, false); - // Close datepicker on document click - window.addEventListener('click', function(event) {if (event.target !== dp._target) dp.hide();}, false); - // On resize re-calculate position - window.addEventListener('resize', function() {if (dp._visible) dp.position();}, false); - }; - - // Parse options - DatePicker.prototype._parseArguments = function(args) { - // Arguments object - var obj = { - target : null, - options : {} - }; - - // If no arguments - if (args.length === 0) { - // Throw an error - throw new Error('jsCalendar-datepicker: No parameters were given.'); - } - - // Only 1 argument - else if (args.length === 1) { - - // If target element - if ( - ( - // If html element - ((typeof HTMLElement === 'object') ? (args[0] instanceof HTMLElement) : args[0]) && - (typeof args[0] === 'object') && (args[0] !== null) && (args[0].nodeType === 1) && - (typeof args[0].nodeName === 'string') - ) || ( - // Or string - typeof args[0] === 'string' - ) - ) { - obj.target = args[0]; - } - - // Options argument - else { - // Init arguments - obj.options = args[0]; - // Get target - if (typeof args[0].target !== 'undefined') { - obj.target = args[0].target; - } - else { - // Throw an error - throw new Error('jsCalendar-datepicker: Not target was given.'); - } - } - } - - // Many arguments - else { - - // First is target - obj.target = args[0]; - - // If options - if (args.length >= 3) { - obj.options = args[2]; - } - - // If date - if (args.length >= 2) { - obj.options.date = args[1]; - } - - } - - // Return object - return obj; - }; - - // Set target - DatePicker.prototype._setTarget = function(element) { - // Parse target - var target = $.tools.getElement(element); - // If target not found - if (!target) { - // Throw an error - throw new Error('jsCalendar-datepicker: Target was not found.'); - } - else { - // Save element - this._target = target; - } - }; - - // Parse options - DatePicker.prototype._parseOptions = function(doptions) { - // Options Object - this._options = {}; - // Input options object (dirty) - var options = {}; - - var item; - // Load default and input options - for (item in _.options) { - // Default options - if (_.options.hasOwnProperty(item)) { - if (_.options[item] instanceof Array) - this._options[item] = _.options[item].slice(0); - else - this._options[item] = _.options[item]; - } - // Dynamic options - if (doptions.hasOwnProperty(item)) { - options[item] = doptions[item]; - } - // Dataset options - else if (this._target.dataset.hasOwnProperty(item)) { - options[item] = this._target.dataset[item]; - } - } - - // Check options - if (typeof options.format !== 'undefined'){ - this._options.format = options.format; - } - if (typeof options.offsetTop !== 'undefined'){ - // If number - if (typeof options.offsetTop === 'number') { - item = options.offsetTop; - if (!isNaN(item)) this._options.offsetTop = item; - } - // If string - else if (typeof options.offsetTop === 'string') { - item = parseInt(options.offsetTop, 10); - if (!isNaN(item)) this._options.offsetTop = item; - } - } - if (typeof options.offsetLeft !== 'undefined'){ - // If number - if (typeof options.offsetLeft === 'number') { - item = options.offsetLeft; - if (!isNaN(item)) this._options.offsetLeft = item; - } - // If string - else if (typeof options.offsetLeft === 'string') { - item = parseInt(options.offsetLeft, 10); - if (!isNaN(item)) this._options.offsetLeft = item; - } - } - if (typeof options.class === 'string'){ - this._options.class = options.class; - } - - // Get calendar options - options = {}; - - // Load input options - for (item in $.options) { - // Dynamic options - if (doptions.hasOwnProperty(item)) { - options[item] = doptions[item]; - } - // Dataset options - else if (this._target.dataset.hasOwnProperty(item)) { - options[item] = this._target.dataset[item]; - } - } - - // Date defined - if (doptions.hasOwnProperty('date')) { - options.date = doptions.date; - } - // Date not defined - else if (!options.hasOwnProperty('date')) { - if (this._target.value.length > 0 && $.tools.parseDate(this._target.value, true) !== null) { - options.date = this._target.value; - } - else if (this._target.dataset.hasOwnProperty('date')) { - options.date = this._target.dataset.date; - } - } - - // Return calendar options - return options; - }; - - // Listeners handlers - DatePicker.prototype._onFocus = function() { - this.jsCalendar.reset(); - this.show(); - }; - DatePicker.prototype._onPick = function(date) { - // If date not in range - if (this.jsCalendar._options.min && this.jsCalendar._options.min.getTime() > date) return; - if (this.jsCalendar._options.max && this.jsCalendar._options.max.getTime() < date) return; - // Set input date - this._target.value = $.tools.dateToString(date, this._options.format, this.jsCalendar._options.language); - // Update calendar date - this.jsCalendar.set(date); - // Close picker - this.hide(); - }; - - // Show/Hide datepicker - DatePicker.prototype.show = function() { - // If already visible - if (this._visible) return; - this.position(); - this._wrapper.style.display = 'block'; - this._visible = true; - }; - DatePicker.prototype.hide = function() { - this._wrapper.style.display = 'none'; - this._visible = false; - }; - DatePicker.prototype.isVisible = function() { - return this._visible; - }; - - // Calculate position - DatePicker.prototype.position = function() { - // Reset position - var display = this._wrapper.style.display; - this._wrapper.style.top = '-9999px'; - this._wrapper.style.left = '-9999px'; - this._wrapper.style.display = 'block'; - - // Calculate position - var left = 0; - var top = 0; - var element = this._target; - while (element && !isNaN(element.offsetLeft) && !isNaN(element.offsetTop)){ - left += element.offsetLeft - element.scrollLeft; - top += element.offsetTop - element.scrollTop; - element = element.offsetParent; - } - var height = this._target.clientHeight || this._target.offsetHeight || this._target.scrollHeight || 20; - - // Postions - top = top + height + this._options.offsetTop; - left = left + this._options.offsetLeft; - if (document.body.offsetWidth < left + this._wrapper.offsetWidth) { - left = document.body.offsetWidth - this._wrapper.offsetWidth - 1; - } - - // Apply position - this._wrapper.style.display = display; - this._wrapper.style.top = top + 'px'; - this._wrapper.style.left = left + 'px'; - }; - - // Auto init datepickers - DatePicker.autoFind = function() { - // Get all inputs - var inputs = document.getElementsByTagName('input'); - // Filter inputs - var datepickers = []; - for (var i = 0; i < inputs.length; i++) { - if ( - inputs[i].type === 'text' && - inputs[i].dataset.hasOwnProperty('datepicker') && - inputs[i].getAttribute('jsCalendar-datepicker-loaded') !== 'true' - ) { - datepickers.push(inputs[i]); - } - } - - // For each auto-calendar - for (i = 0; i < datepickers.length; i++) { - // Set as loaded - datepickers[i].setAttribute('jsCalendar-datepicker-loaded', 'true'); - // Create - new DatePicker(datepickers[i]); - } - }; - - // Link extension on library - if (!$.ext) $.ext = {}; - - // Extensions object - $.ext.datepicker = _; - $.ext.datepicker.autoFind = DatePicker.autoFind; - - // Extension methods - $.datepicker = function() { - // Create new object - var obj = new DatePicker(); - // Construct datepicker - obj._construct(arguments); - // Return new object - return obj; - }; - - // Init auto datepickers - // After the page loads - window.addEventListener('load', function() { - // Get calendars - _.autoFind(); - }, false); - -})(window.jsCalendar); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.datepicker.min.js b/backoffice/vendors/jscalendar/js/jsCalendar.datepicker.min.js deleted file mode 100644 index 59c95f9..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.datepicker.min.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * jsCalendar extension - * DatePicker v1.0.1 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - -(function(e){if(!e)throw"Error jsCalendar library was not found";var f={options:{format:"DD/MM/YYYY",offsetTop:2,offsetLeft:-4,close_keycodes:[9,27,13],"class":"jsCalendar-datepicker-wrappper"}},d=function(){0!==arguments.length&&this._construct(arguments)};d.version="v1.0.1-beta";d.prototype._construct=function(a){a=this._parseArguments(a);this._setTarget(a.target);a=this._parseOptions(a.options);this._visible=!1;this._wrapper=document.createElement("div");this._wrapper.className=this._options["class"]; -this._wrapper.style.display="none";this._wrapper.style.position="absolute";document.body.appendChild(this._wrapper);a.target=this._wrapper;this.jsCalendar=new e(a);a.hasOwnProperty("date")&&(this._target.value=e.tools.dateToString(e.tools.parseDate(a.date),this._options.format,this.jsCalendar._options.language));var b=this;this.jsCalendar.onDateClick(function(a,d){b._onPick(d)});this._target.addEventListener("focus",function(){b._onFocus()},!1);this._target.addEventListener("keydown",function(a){0<= -b._options.close_keycodes.indexOf(a.keyCode)&&b.hide()},!1);this.jsCalendar._elements.table.addEventListener("click",function(a){a.stopPropagation()},!1);window.addEventListener("click",function(a){a.target!==b._target&&b.hide()},!1);window.addEventListener("resize",function(){b._visible&&b.position()},!1)};d.prototype._parseArguments=function(a){var b={target:null,options:{}};if(0===a.length)throw Error("jsCalendar-datepicker: No parameters were given.");if(1===a.length)if(("object"===typeof HTMLElement? -a[0]instanceof HTMLElement:a[0])&&"object"===typeof a[0]&&null!==a[0]&&1===a[0].nodeType&&"string"===typeof a[0].nodeName||"string"===typeof a[0])b.target=a[0];else if(b.options=a[0],"undefined"!==typeof a[0].target)b.target=a[0].target;else throw Error("jsCalendar-datepicker: Not target was given.");else b.target=a[0],3<=a.length&&(b.options=a[2]),2<=a.length&&(b.options.date=a[1]);return b};d.prototype._setTarget=function(a){if(a=e.tools.getElement(a))this._target=a;else throw Error("jsCalendar-datepicker: Target was not found."); -};d.prototype._parseOptions=function(a){this._options={};var b={};for(c in f.options)f.options.hasOwnProperty(c)&&(this._options[c]=f.options[c]instanceof Array?f.options[c].slice(0):f.options[c]),a.hasOwnProperty(c)?b[c]=a[c]:this._target.dataset.hasOwnProperty(c)&&(b[c]=this._target.dataset[c]);"undefined"!==typeof b.format&&(this._options.format=b.format);if("undefined"!==typeof b.offsetTop)if("number"===typeof b.offsetTop){var c=b.offsetTop;isNaN(c)||(this._options.offsetTop=c)}else"string"=== -typeof b.offsetTop&&(c=parseInt(b.offsetTop,10),isNaN(c)||(this._options.offsetTop=c));"undefined"!==typeof b.offsetLeft&&("number"===typeof b.offsetLeft?(c=b.offsetLeft,isNaN(c)||(this._options.offsetLeft=c)):"string"===typeof b.offsetLeft&&(c=parseInt(b.offsetLeft,10),isNaN(c)||(this._options.offsetLeft=c)));"string"===typeof b["class"]&&(this._options["class"]=b["class"]);b={};for(c in e.options)a.hasOwnProperty(c)?b[c]=a[c]:this._target.dataset.hasOwnProperty(c)&&(b[c]=this._target.dataset[c]); -a.hasOwnProperty("date")?b.date=a.date:b.hasOwnProperty("date")||(0a||this.jsCalendar._options.max&&this.jsCalendar._options.max.getTime()< -a||(this._target.value=e.tools.dateToString(a,this._options.format,this.jsCalendar._options.language),this.jsCalendar.set(a),this.hide())};d.prototype.show=function(){this._visible||(this.position(),this._wrapper.style.display="block",this._visible=!0)};d.prototype.hide=function(){this._wrapper.style.display="none";this._visible=!1};d.prototype.isVisible=function(){return this._visible};d.prototype.position=function(){var a=this._wrapper.style.display;this._wrapper.style.top="-9999px";this._wrapper.style.left= -"-9999px";this._wrapper.style.display="block";for(var b=0,c=0,d=this._target;d&&!isNaN(d.offsetLeft)&&!isNaN(d.offsetTop);)b+=d.offsetLeft-d.scrollLeft,c+=d.offsetTop-d.scrollTop,d=d.offsetParent;c=c+(this._target.clientHeight||this._target.offsetHeight||this._target.scrollHeight||20)+this._options.offsetTop;b+=this._options.offsetLeft;document.body.offsetWidth= 2) { - obj.date = args[1]; - } - - // If options - if (args.length >= 3) { - obj.options = args[2]; - } - - } - - // Return object - return obj; - }; - - // Default options - JsCalendar.options = { - language : 'en', - zeroFill : false, - monthFormat : 'month', - dayFormat : 'D', - firstDayOfTheWeek : 1, - navigator : true, - navigatorPosition : 'both', - min : false, - max : false, - onMonthRender : false, - onDayRender : false, - onDateRender : false - }; - - // Parse options - JsCalendar.prototype._parseOptions = function(doptions) { - // Options Object - this._options = {}; - // Input options object (dirty) - var options = {}; - - // Load default and input options - for (var item in JsCalendar.options) { - // Default options - if (JsCalendar.options.hasOwnProperty(item)) { - this._options[item] = JsCalendar.options[item]; - } - // Dynamic options - if (doptions.hasOwnProperty(item)) { - options[item] = doptions[item]; - } - // Dataset options - else if (this._target.dataset.hasOwnProperty(item)) { - options[item] = this._target.dataset[item]; - } - } - - // Check options - if (typeof options.zeroFill !== 'undefined'){ - if (options.zeroFill === 'false' || !options.zeroFill) { - this._options.zeroFill = false; - } - else { - this._options.zeroFill = true; - } - } - if (typeof options.monthFormat !== 'undefined'){ - this._options.monthFormat = options.monthFormat; - } - if (typeof options.dayFormat !== 'undefined'){ - this._options.dayFormat = options.dayFormat; - } - if (typeof options.navigator !== 'undefined'){ - if (options.navigator === 'false' || !options.navigator) { - this._options.navigator = false; - } - else { - this._options.navigator = true; - } - } - if (typeof options.navigatorPosition !== 'undefined'){ - this._options.navigatorPosition = options.navigatorPosition; - } - - // Language - if (typeof options.language === 'string' && typeof this.languages[options.language] !== 'undefined'){ - this._options.language = options.language; - } - // Set language - this.setLanguage(this._options.language); - - // Set first day of the week - if (typeof options.fdotw !== 'undefined'){ - options.firstDayOfTheWeek = options.fdotw; - } - if (typeof options.firstDayOfTheWeek !== 'undefined'){ - // If day number - if (typeof options.firstDayOfTheWeek === 'number') { - // Range check (no need to check for bigger than 7 but I don't trust anyone) - if (options.firstDayOfTheWeek >= 1 && options.firstDayOfTheWeek <= 7) { - this._options.firstDayOfTheWeek = options.firstDayOfTheWeek; - } - } - // If string - if (typeof options.firstDayOfTheWeek === 'string') { - // If day number - if (options.firstDayOfTheWeek.match(/^[1-7]$/)) { - this._options.firstDayOfTheWeek = parseInt(options.firstDayOfTheWeek, 10); - } - // else use it as a day name - else { - // So find day - this._options.firstDayOfTheWeek = this.language.days.indexOf(options.firstDayOfTheWeek) + 1; - - // Range check (no need to check for bigger then 7 but I don't trust anyone) - if (this._options.firstDayOfTheWeek < 1 || this._options.firstDayOfTheWeek > 7) { - this._options.firstDayOfTheWeek = 1; - } - } - } - } - - // Set min calendar date - if (typeof options.min !== 'undefined' && options.min !== 'false' && options.min !== false) { - // Parse date - this._options.min = tools.parseDate(options.min); - } - // Set max calendar date - if (typeof options.max !== 'undefined' && options.max !== 'false' && options.max !== false) { - // Parse date - this._options.max = tools.parseDate(options.max); - } - - // Set render handlers - if (typeof options.onMonthRender !== 'undefined') { - // Passed as function name string - if ( - typeof options.onMonthRender === 'string' && - typeof window[options.onMonthRender] === 'function' - ) { - this._on('month_render', window[options.onMonthRender]); - } - // Passed as function - else if (typeof options.onMonthRender === 'function') { - this._on('month_render', options.onMonthRender); - } - } - if (typeof options.onDayRender !== 'undefined') { - // Passed as function name string - if ( - typeof options.onDayRender === 'string' && - typeof window[options.onDayRender] === 'function' - ) { - this._on('day_render', window[options.onDayRender]); - } - // Passed as function - else if (typeof options.onDayRender === 'function') { - this._on('day_render', options.onDayRender); - } - } - if (typeof options.onDateRender !== 'undefined') { - // Passed as function name string - if ( - typeof options.onDateRender === 'string' && - typeof window[options.onDateRender] === 'function' - ) { - this._on('date_render', window[options.onDateRender]); - } - // Passed as function - else if (typeof options.onDateRender === 'function') { - this._on('date_render', options.onDateRender); - } - } - }; - - // Set target - JsCalendar.prototype._setTarget = function(element) { - // Parse target - var target = tools.getElement(element); - // If target not found - if (!target) { - // Throw an error - throw new Error('jsCalendar: Target was not found.'); - } - else { - // Save element - this._target = target; - - // Link object to list - var id = this._target.id; - if (id && id.length > 0) { - jsCalendarObjects['#' + id] = this; - } - } - }; - - // Init target - JsCalendar.prototype._initTarget = function() { - // Add class - if (this._target.className.length > 0){ - this._target.className += ' '; - } - this._target.className += 'jsCalendar'; - - // Create table - this._elements.table = document.createElement('table'); - // Create table header - this._elements.head = document.createElement('thead'); - this._elements.table.appendChild(this._elements.head); - // Create table body - this._elements.body = document.createElement('tbody'); - this._elements.table.appendChild(this._elements.body); - - // Insert on page - this._target.appendChild(this._elements.table); - }; - - // Check if date in range - JsCalendar.prototype._isDateInRange = function(date) { - // If no range - if (this._options.min === false && this._options.max === false) { - return true; - } - - // Parse date - date = tools.parseDate(date); - - // Check min - if (this._options.min !== false && this._options.min.getTime() > date.getTime()) { - return false; - } - // Check max - if (this._options.max !== false && this._options.max.getTime() < date.getTime()) { - return false; - } - - // In range - return true; - }; - - // Set a Date - JsCalendar.prototype._setDate = function(date) { - // Parse date - date = tools.parseDate(date); - // Check date not in range - if (!this._isDateInRange(date)) { - return; - } - // Set data - this._now = date; - this._date = new Date(this._now.getFullYear(), this._now.getMonth(), 1); - }; - - // Convert to date string - JsCalendar.prototype._parseToDateString = function(date, format) { - var lang = this.language; - return format.replace(/(MONTH|month|MMM|mmm|mm|m|MM|M|DAY|day|DDD|ddd|dd|d|DD|D|YYYY|yyyy)/g, function(key) { - return lang.dateStringParser(key, date); - }); - }; - - // Get visible month - JsCalendar.prototype._getVisibleMonth = function(date) { - // For date - if (typeof date === 'undefined') { - // Get saved date - date = this._date; - } - else { - date = tools.parseDate(date); - } - - // Get month's first day - var first = new Date(date.getTime()); - first.setDate(1); - - // First day of the month index - var firstDay = first.getDay() - (this._options.firstDayOfTheWeek - 1); - if (firstDay < 0) { - firstDay += 7; - } - - // Get month's name - var lang = this.language; - var name = this._options.monthFormat.replace(/(MONTH|month|MMM|mmm|##|#|YYYY|yyyy)/g, function(key) { - return lang.dateStringParser(key, first); - }); - - // Get visible days - var days = this._getVisibleDates(date); - var daysInMonth = new Date(first.getYear() + 1900, first.getMonth() + 1, 0).getDate(); - - var current = -1; - // If this is the month - if (first.getYear() === this._now.getYear() && first.getMonth() === this._now.getMonth()) { - // Calculate current - current = firstDay + this._now.getDate() - 1; - } - - // Return object - return { - name : name, - days : days, - start : firstDay + 1, - current : current, - end : firstDay + daysInMonth - }; - }; - - // Get visible dates - JsCalendar.prototype._getVisibleDates = function(date) { - // For date - if (typeof date === 'undefined') { - // Get saved date - date = this._date; - } - else { - date = tools.parseDate(date); - } - - // Visible days array - var dates = []; - // Get first day of the month - var first = new Date(date.getTime()); - first.setDate(1); - first.setHours(0, 0, 0, 0); - - // Count days of previous month to show - var previous = first.getDay() - (this._options.firstDayOfTheWeek - 1); - if (previous < 0) { - previous += 7; - } - // Set day to month's first - var day = new Date(first.getTime()); - // Previous month's days - while (previous > 0) { - // Calculate previous day - day.setDate(day.getDate() - 1); - // Add page on frond of the list - dates.unshift(new Date(day.getTime())); - // Previous - previous --; - } - - // Set day to month's first - day = new Date(first.getTime()); - // This month's days - do { - // Add page on back of the list - dates.push(new Date(day.getTime())); - // Calculate next day - day.setDate(day.getDate() + 1); - // Repeat until next month - } while (day.getDate() !== 1); - - // Next month's days - var next = 42 - dates.length; - // Add days left - while (next > 0) { - // Add page on back of the list - dates.push(new Date(day.getTime())); - // Calculate next day - day.setDate(day.getDate() + 1); - // Next - next --; - } - - // Return days - return dates; - }; - - // Create calendar - JsCalendar.prototype._create = function() { - var i, j; - // Save instance - var that = this; - - // Set created flag - this._elements.created = true; - - // Head rows - this._elements.headRows = []; - for (i = 0; i < 2; i++) { - this._elements.headRows.push(document.createElement('tr')); - this._elements.head.appendChild(this._elements.headRows[i]); - } - - // Month row - var title_header = document.createElement('th'); - title_header.setAttribute('colspan', 7); - this._elements.headRows[0].className = 'jsCalendar-title-row'; - this._elements.headRows[0].appendChild(title_header); - - this._elements.headLeft = document.createElement('div'); - this._elements.headLeft.className = 'jsCalendar-title-left'; - title_header.appendChild(this._elements.headLeft); - this._elements.month = document.createElement('div'); - this._elements.month.className = 'jsCalendar-title-name'; - title_header.appendChild(this._elements.month); - this._elements.headRight = document.createElement('div'); - this._elements.headRight.className = 'jsCalendar-title-right'; - title_header.appendChild(this._elements.headRight); - - // Navigation - if (this._options.navigator) { - this._elements.navLeft = document.createElement('div'); - this._elements.navLeft.className = 'jsCalendar-nav-left'; - this._elements.navRight = document.createElement('div'); - this._elements.navRight.className = 'jsCalendar-nav-right'; - - if (this._options.navigatorPosition === 'left') { - this._elements.headLeft.appendChild(this._elements.navLeft); - this._elements.headLeft.appendChild(this._elements.navRight); - } - else if (this._options.navigatorPosition === 'right') { - this._elements.headRight.appendChild(this._elements.navLeft); - this._elements.headRight.appendChild(this._elements.navRight); - } - else { - this._elements.headLeft.appendChild(this._elements.navLeft); - this._elements.headRight.appendChild(this._elements.navRight); - } - - // Event listeners - this._elements.navLeft.addEventListener('click', function(event){ - that.previous(); - var date = new Date(that._date.getTime()); - date.setDate(1); - that._eventFire('month', date, event); - }, false); - this._elements.navRight.addEventListener('click', function(event){ - that.next(); - var date = new Date(that._date.getTime()); - date.setDate(1); - that._eventFire('month', date, event); - }, false); - } - - // Days row - this._elements.headRows[1].className = 'jsCalendar-week-days'; - title_header.className = 'jsCalendar-title'; - this._elements.days = []; - for (i = 0; i < 7; i++) { - this._elements.days.push(document.createElement('th')); - this._elements.headRows[1].appendChild(this._elements.days[ - this._elements.days.length - 1 - ]); - } - - // Body rows - this._elements.bodyRows = []; - this._elements.bodyCols = []; - // 6 rows - for (i = 0; i < 6; i++) { - this._elements.bodyRows.push(document.createElement('tr')); - this._elements.body.appendChild(this._elements.bodyRows[i]); - // 7 days - for (j = 0; j < 7; j++) { - this._elements.bodyCols.push(document.createElement('td')); - this._elements.bodyRows[i].appendChild(this._elements.bodyCols[i * 7 + j]); - this._elements.bodyCols[i * 7 + j].addEventListener('click', (function(index){ - return function (event) { - that._eventFire('date', that._active[index], event); - }; - })(i * 7 + j), false); - } - } - }; - - // Select dates on calendar - JsCalendar.prototype._selectDates = function(dates) { - // Copy array instance - dates = dates.slice(); - - // Parse dates - for (var i = 0; i < dates.length; i++) { - dates[i] = tools.parseDate(dates[i]); - dates[i].setHours(0, 0, 0, 0); - dates[i] = dates[i].getTime(); - } - - // Insert dates on array - for (i = dates.length - 1; i >= 0; i--) { - // If not already selected - if (this._selected.indexOf(dates[i]) < 0) { - this._selected.push(dates[i]); - } - } - }; - - // Un-select dates on calendar - JsCalendar.prototype._unselectDates = function(dates) { - // Copy array instance - dates = dates.slice(); - - // Parse dates - for (var i = 0; i < dates.length; i++) { - dates[i] = tools.parseDate(dates[i]); - dates[i].setHours(0, 0, 0, 0); - dates[i] = dates[i].getTime(); - } - - // Remove dates of the array - var index; - for (i = dates.length - 1; i >= 0; i--) { - // If selected - index = this._selected.indexOf(dates[i]); - if (index >= 0) { - this._selected.splice(index, 1); - } - } - }; - - // Unselect all dates on calendar - JsCalendar.prototype._unselectAllDates = function() { - // While not empty - while (this._selected.length) { - this._selected.pop(); - } - }; - - // Update calendar - JsCalendar.prototype._update = function() { - // Get month info - var month = this._getVisibleMonth(this._date); - // Save data - this._active = month.days.slice(); - // Update month name - this._elements.month.textContent = month.name; - - // Check zeros filling - var prefix = (this._options.zeroFill) ? '0' : ''; - - // Populate days - var text; - for (var i = month.days.length - 1; i >= 0; i--) { - text = month.days[i].getDate(); - this._elements.bodyCols[i].textContent = (text < 10 ? prefix + text : text); - - // If date is selected - if (this._selected.indexOf(month.days[i].getTime()) >= 0) { - this._elements.bodyCols[i].className = 'jsCalendar-selected'; - } - else { - this._elements.bodyCols[i].removeAttribute('class'); - } - } - - // Previous month - for (i = 0; i < month.start - 1; i++) { - this._elements.bodyCols[i].className = 'jsCalendar-previous'; - } - // Current day - if (month.current >= 0) { - if (this._elements.bodyCols[month.current].className.length > 0) { - this._elements.bodyCols[month.current].className += ' jsCalendar-current'; - } - else { - this._elements.bodyCols[month.current].className = 'jsCalendar-current'; - } - } - // Next month - for (i = month.end; i < month.days.length; i++) { - this._elements.bodyCols[i].className = 'jsCalendar-next'; - } - - // Set days of the week locale - for (i = 0; i < 7; i++) { - var that = this; - this._elements.days[i].textContent = this._options.dayFormat.replace(/(DAY|day|DDD|ddd|DD|dd|D)/g, function(key) { - return that.language.dayStringParser( - key, - (i + that._options.firstDayOfTheWeek - 1) % 7 - ); - }); - } - - // Call render handlers - var j; - if (this._events.month_render.length > 0) { - var date = month.days[month.start]; - // Clear any style - this._elements.month.removeAttribute('style'); - // Call the render handlers - for (j = 0; j < this._events.month_render.length; j++) { - this._events.month_render[j].call(this, - // Month index - date.getMonth(), - // Pass the html element - this._elements.month, - // Info about that month - { - start : new Date(date.getTime()), - end : new Date(date.getFullYear(), date.getMonth() + 1, 0, 23, 59, 59, 999), - numberOfDays : month.end - month.start + 1 - } - ); - } - } - if (this._events.day_render.length > 0) { - for (i = 0; i < 7; i++) { - // Clear any style - this._elements.days[i].removeAttribute('style'); - // Call the render handler - for (j = 0; j < this._events.day_render.length; j++) { - this._events.day_render[j].call(this, - // Day index - (i + this._options.firstDayOfTheWeek - 1) % 7, - // Pass the html element - this._elements.days[i], - // Info about that day - { - position : i - } - ); - } - } - } - if (this._events.date_render.length > 0) { - for (i = 0; i < month.days.length; i++) { - // Clear any style - this._elements.bodyCols[i].removeAttribute('style'); - // Call the render handler - for (j = 0; j < this._events.date_render.length; j++) { - this._events.date_render[j].call(this, - // Date should be clonned - new Date(month.days[i].getTime()), - // Pass the html element - this._elements.bodyCols[i], - // Info about that date - { - isCurrent : (month.current == i), - isSelected : (this._selected.indexOf(month.days[i].getTime()) >= 0), - isPreviousMonth : (i < month.start), - isCurrentMonth : (month.start <= i && i <= month.end), - isNextMonth : (month.end < i), - position : {x: i%7, y: Math.floor(i/7)} - } - ); - } - } - } - }; - - // Fire all event listeners - JsCalendar.prototype._eventFire = function(name, date, event) { - if (!this._events.hasOwnProperty(name)) return; - // Search events - for (var i = 0; i < this._events[name].length; i++) { - (function(callback, instance) { - // Call asynchronous - setTimeout(function(){ - // Call callback - callback.call(instance, event, new Date(date.getTime())); - }, 0); - })(this._events[name][i], this); - } - }; - - // Add a event listener - // This method will be exposed on the future - JsCalendar.prototype._on = function(name, callback) { - // If callback is a function - if(typeof callback === 'function'){ - // Add to the list - this._events[name].push(callback); - } - - // Not a function - else { - // Throw an error - throw new Error('jsCalendar: Invalid callback function.'); - } - - // Return - return this; - }; - - // Add a event listeners - JsCalendar.prototype.onDateClick = function(callback) { - return this._on('date', callback); - }; - JsCalendar.prototype.onMonthChange = function(callback) { - return this._on('month', callback); - }; - JsCalendar.prototype.onDayRender = function(callback) { - return this._on('day_render', callback); - }; - JsCalendar.prototype.onDateRender = function(callback) { - return this._on('date_render', callback); - }; - JsCalendar.prototype.onMonthRender = function(callback) { - return this._on('month_render', callback); - }; - - // Goto a date - JsCalendar.prototype.set = function(date){ - // Set new date - this._setDate(date); - // Refresh - this.refresh(); - - // Return - return this; - }; - - // Set min date - JsCalendar.prototype.min = function(date){ - // If value - if (date) { - // Set min date - this._options.min = tools.parseDate(date); - } - // Disable - else { - this._options.min = false; - } - - // Refresh - this.refresh(); - - // Return - return this; - }; - - // Set max date - JsCalendar.prototype.max = function(date){ - // If value - if (date) { - // Set max date - this._options.max = tools.parseDate(date); - } - // Disable - else { - this._options.max = false; - } - - // Refresh - this.refresh(); - - // Return - return this; - }; - - // Refresh - // Safe _update - JsCalendar.prototype.refresh = function(date) { - // If date provided - if (typeof date !== 'undefined') { - // If date is in range - if (this._isDateInRange(date)) { - this._date = tools.parseDate(date); - } - } - - // If calendar elements ready - if (this._elements.created === true) { - this._update(); - } - - // Return - return this; - }; - - // Next month - JsCalendar.prototype.next = function(n){ - // Next number - if (typeof n !== 'number') { - n = 1; - } - - // Calculate date - var date = new Date(this._date.getFullYear(), this._date.getMonth() + n, 1); - - // If date is not in range - if (!this._isDateInRange(date)) { - return this; - } - - // Set date - this._date = date; - this.refresh(); - - // Return - return this; - }; - - // Next month - JsCalendar.prototype.previous = function(n){ - // Next number - if (typeof n !== 'number') { - n = 1; - } - - // Calculate date (last day of previous month) - var date = new Date(this._date.getFullYear(), this._date.getMonth() - n + 1, 0); - - // If date is not in range - if (!this._isDateInRange(date)) { - return this; - } - - // Set date - this._date = date; - this.refresh(); - - // Return - return this; - }; - - // Goto a date - JsCalendar.prototype.goto = function(date){ - this.refresh(date); - - // Return - return this; - }; - - // Reset to the date - JsCalendar.prototype.reset = function(){ - this.refresh(this._now); - - // Return - return this; - }; - - // Select dates - JsCalendar.prototype.select = function(dates){ - // If no arguments - if (typeof dates === 'undefined') { - // Return - return this; - } - - // If dates not array - if (!(dates instanceof Array)) { - // Lets make it an array - dates = [dates]; - } - // Select dates - this._selectDates(dates); - // Refresh - this.refresh(); - - // Return - return this; - }; - - // Unselect dates - JsCalendar.prototype.unselect = function(dates){ - // If no arguments - if (typeof dates === 'undefined') { - // Return - return this; - } - - // If dates not array - if (!(dates instanceof Array)) { - // Lets make it an array - dates = [dates]; - } - // Unselect dates - this._unselectDates(dates); - // Refresh - this.refresh(); - - // Return - return this; - }; - - // Unselect all dates - JsCalendar.prototype.clearselect = function(){ - // Unselect all dates - this._unselectAllDates(); - // Refresh - this.refresh(); - - // Return - return this; - }; - // Unselect all dates (alias) - JsCalendar.prototype.clearSelected = JsCalendar.prototype.clearselect; - - // Get selected dates - JsCalendar.prototype.getSelected = function(options){ - // Check if no options - if (typeof options !== 'object') { - options = {}; - } - - // Copy selected array - var dates = this._selected.slice(); - - // Options - Sort array - if (options.sort) { - if (options.sort === true) { - dates.sort(); - } - else if (typeof options.sort === 'string') { - if (options.sort.toLowerCase() === 'asc') { - dates.sort(); - } - else if (options.sort.toLowerCase() === 'desc'){ - dates.sort(); - dates.reverse(); - } - } - } - - // Options - Data type - if (options.type && typeof options.type === 'string') { - var i; - // Convert to date object - if (options.type.toLowerCase() === 'date'){ - for (i = dates.length - 1; i >= 0; i--) { - dates[i] = new Date(dates[i]); - } - } - // If not a timestamp - convert to custom format - else if (options.type.toLowerCase() !== 'timestamp') { - for (i = dates.length - 1; i >= 0; i--) { - dates[i] = this._parseToDateString(new Date(dates[i]), options.type); - } - } - } - - // Return dates - return dates; - }; - - // Check if date is selected - JsCalendar.prototype.isSelected = function(date){ - // If no arguments or null - if (typeof date === 'undefined' || date === null) { - // Return - return false; - } - - // Parse date - date = tools.parseDate(date); - date.setHours(0, 0, 0, 0); - date = date.getTime(); - - // If selected - if (this._selected.indexOf(date) >= 0) { - return true; - } - // If not selected - else { - return false; - } - }; - - // Check if date is visible in calendar - JsCalendar.prototype.isVisible = function(date){ - // If no arguments or null - if (typeof date === 'undefined' || date === null) { - // Return - return false; - } - - // Parse date - date = tools.parseDate(date); - date.setHours(0, 0, 0, 0); - date = date.getTime(); - - // Get visible dates - var visible = this._getVisibleDates(); - // Check if date is inside visible dates - if (visible[0].getTime() <= date && visible[visible.length - 1].getTime() >= date) { - return true; - } - // Not visible - else { - return false; - } - }; - - // Check if date is in active month - JsCalendar.prototype.isInMonth = function(date){ - // If no arguments or null - if (typeof date === 'undefined' || date === null) { - // Return - return false; - } - - // Parse date and get month - var month = tools.parseDate(date); - month.setHours(0, 0, 0, 0); - month.setDate(1); - - // Parse active month date - var active = tools.parseDate(this._date); - active.setHours(0, 0, 0, 0); - active.setDate(1); - - // If same month - if (month.getTime() === active.getTime()) { - return true; - } - // Other month - else { - return false; - } - }; - - // Set language - JsCalendar.prototype.setLanguage = function(code) { - // Check if language exist - if (typeof code !== 'string'){ - // Throw an error - throw new Error('jsCalendar: Invalid language code.'); - } - if (typeof this.languages[code] === 'undefined'){ - // Throw an error - throw new Error('jsCalendar: Language not found.'); - } - - // Change language - this._options.language = code; - - // Set new language as active - var language = this.languages[code]; - this.language.months = language.months; - this.language.days = language.days; - this.language.dateStringParser = language._dateStringParser; - this.language.dayStringParser = language._dayStringParser; - - // Refresh calendar - this.refresh(); - - // Return - return this; - }; - - - // Static foo methods (well... not really static) - - // Auto init calendars - JsCalendar.autoFind = function() { - // Get all auto-calendars - var calendars = document.getElementsByClassName('auto-jsCalendar'); - // For each auto-calendar - for (var i = 0; i < calendars.length; i++) { - // If not loaded - if (calendars[i].getAttribute('jsCalendar-loaded') !== 'true') { - // Set as loaded - calendars[i].setAttribute('jsCalendar-loaded', 'true'); - // Create - new JsCalendar({target: calendars[i]}); - } - } - }; - - // Tools - var tools = JsCalendar.tools = {}; - // Parse to javascript date object - tools.parseDate = function(date, silent) { - // If set now date - if (typeof date === 'undefined' || date === null || date === 'now') { - // Get date now - date = new Date(); - } - - // If date is string - else if (typeof date === 'string') { - // Parse date string - date = date.replace(/-/g,'/').match(/^(\d{1,2})\/(\d{1,2})\/(\d{4,4})$/i); - // If match - if (date !== null) { - var month_index = parseInt(date[2], 10) - 1; - // Parse date - date = new Date(date[3], month_index, date[1]); - // Check if date does not exist - if (!date || date.getMonth() !== month_index) { - // Throw an error - if (!silent) throw new Error('jsCalendar: Date does not exist.'); - return null; - } - } - // Can't parse string - else { - // Throw an error - if (!silent) throw new Error('jsCalendar: Failed to parse date.'); - return null; - } - } - - // If it is a number - else if (typeof date === 'number') { - // Get time from timestamp - date = new Date(date); - } - - // If it not a date - else if (!(date instanceof Date)) { - // Throw an error - if (!silent) throw new Error('jsCalendar: Invalid date.'); - return null; - } - - // Return date - return new Date(date.getTime()); - }; - tools.stringToDate = tools.parseDate; - // Date to string - tools.dateToString = function(date, format, lang) { - // Find lang - var languages = JsCalendar.prototype.languages; - if (!lang || !languages.hasOwnProperty(lang)) { - lang = 'en'; - } - - // Call parser - return JsCalendar.prototype._parseToDateString.apply( - {language : { - months : languages[lang].months, - days : languages[lang].days, - dateStringParser : languages[lang]._dateStringParser, - dayStringParser : languages[lang]._dayStringParser - }}, - [date, format] - ); - }; - // Get element - tools.getElement = function(element) { - // Check if not valid - if (!element) { - return null; - } - - // If string - if (typeof element === 'string') { - // Get element by id - if (element[0] === '#') { - return document.getElementById(element.substring(1)); - } - // Get element by class-name - else if (element[0] === '.') { - return document.getElementsByClassName(element.substring(1))[0]; - } - } - - // or if it is HTML element (just a naive-simple check) - else if (element.tagName && element.nodeName && element.ownerDocument && element.removeAttribute) { - return element; - } - - // Unknown - return null; - }; - - // Get a new object - JsCalendar.new = function(){ - // Create new object - var obj = new JsCalendar(); - // Construct calendar - obj._construct(arguments); - // Return new object - return obj; - }; - - // Manage existing jsCalendar objects - var jsCalendarObjects = {}; - JsCalendar.set = function(identifier, calendar){ - if (calendar instanceof JsCalendar) { - jsCalendarObjects[identifier] = calendar; - return true; - } - throw new Error('jsCalendar: The second parameter is not a jsCalendar.'); - }; - JsCalendar.get = function(identifier){ - if (jsCalendarObjects.hasOwnProperty(identifier)) { - return jsCalendarObjects[identifier]; - } - return null; - }; - JsCalendar.del = function(identifier){ - if (jsCalendarObjects.hasOwnProperty(identifier)) { - delete jsCalendarObjects[identifier]; - return true; - } - return false; - }; - - // Add a new language - JsCalendar.addLanguage = function(language){ - // Check if language object is valid - if (typeof language === 'undefined') { - // Throw an error - throw new Error('jsCalendar: No language object was given.'); - } - // Check if valid language code - if (typeof language.code !== 'string') { - // Throw an error - throw new Error('jsCalendar: Invalid language code.'); - } - // Check language months - if (!(language.months instanceof Array)) { - // Throw an error - throw new Error('jsCalendar: Invalid language months.'); - } - if (language.months.length !== 12) { - // Throw an error - throw new Error('jsCalendar: Invalid language months length.'); - } - // Check language days - if (!(language.days instanceof Array)) { - // Throw an error - throw new Error('jsCalendar: Invalid language days.'); - } - if (language.days.length !== 7) { - // Throw an error - throw new Error('jsCalendar: Invalid language days length.'); - } - - // Now save language - JsCalendar.prototype.languages[language.code] = language; - - // Generate language string format handlers - language._dateStringParser = ( - language.hasOwnProperty('dateStringParser') ? - function(key, date) {return language.dateStringParser(key, date) || JsCalendar._defaultDateStringParser(key, date, language);} : - function(key, date) {return JsCalendar._defaultDateStringParser(key, date, language);} - ); - language._dayStringParser = ( - language.hasOwnProperty('dayStringParser') ? - function(key, day) {return language.dayStringParser(key, day) || JsCalendar._defaultDayStringParser(key, day, language);} : - function(key, day) {return JsCalendar._defaultDayStringParser(key, day, language);} - ); - }; - - // Default function to handle date-string parsing - JsCalendar._defaultDateStringParser = function(key, date, lang){ - switch(key) { - case 'MONTH': - case 'month': - return lang.months[date.getMonth()]; - case 'MMM': - case 'mmm': - return lang.months[date.getMonth()].substring(0, 3); - case 'mm': - return lang.months[date.getMonth()].substring(0, 2); - case 'm': - return lang.months[date.getMonth()].substring(0, 1); - case 'MM': - return (date.getMonth() < 9 ? '0' : '') + (date.getMonth() + 1); - case 'M': - return date.getMonth() + 1; - case '##': - return (date.getMonth() < 9 ? '0' : '') + (date.getMonth() + 1); - case '#': - return date.getMonth() + 1; - case 'DAY': - case 'day': - return lang.days[date.getDay()]; - case 'DDD': - case 'ddd': - return lang.days[date.getDay()].substring(0, 3); - case 'dd': - return lang.days[date.getDay()].substring(0, 2); - case 'd': - return lang.days[date.getDay()].substring(0, 1); - case 'DD': - return (date.getDate() <= 9 ? '0' : '') + date.getDate(); - case 'D': - return date.getDate(); - case 'YYYY': - case 'yyyy': - return date.getYear() + 1900; - } - }; - - // Default function to handle date-string parsing - JsCalendar._defaultDayStringParser = function(key, day, lang){ - switch(key) { - case 'DAY': - case 'day': - return lang.days[day]; - case 'DDD': - case 'ddd': - return lang.days[day].substring(0, 3); - case 'DD': - case 'dd': - return lang.days[day].substring(0, 2); - case 'D': - return lang.days[day].substring(0, 1); - } - }; - - // Load any language on the load list - (function(){ - // If a list exist - if (typeof window.jsCalendar_language2load !== 'undefined') { - // While list not empty - while (window.jsCalendar_language2load.length) { - // Make it asynchronous - setTimeout((function (language) { - // Return timeout callback - return function() { - JsCalendar.addLanguage(language); - }; - })(window.jsCalendar_language2load.pop()), 0); - } - // Clean up useless list - delete window.jsCalendar_language2load; - } - })(); - - // Init auto calendars - // After the page loads - window.addEventListener('load', function() { - // Get calendars - JsCalendar.autoFind(); - }, false); - - // Return - return JsCalendar; -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.be.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.be.js deleted file mode 100644 index 1dc4c78..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.be.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Belarusian Language support - * Translator: Alexander Vorvule (vorvule@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'be', - // Months of the year - months : [ - 'Студзень', - 'Люты', - 'Сакавік', - 'Красавік', - 'Травень', - 'Чэрвень', - 'Ліпень', - 'Жнівень', - 'Верасень', - 'Кастрычнік', - 'Лістапад', - 'Снежань' - ], - // Days of the week - days : [ - 'Нядзеля', - 'Панядзелак', - 'Аўторак', - 'Серада', - 'Чацвер', - 'Пятніца', - 'Субота' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.ca.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.ca.js deleted file mode 100644 index 66d50b1..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.ca.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Catalan Language support - * Translator: Anton Stasyuk (antonstsk@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'ca', - // Months of the year - months : [ - 'Gener', - 'Febrer', - 'Març', - 'Abril', - 'Maig', - 'Juny', - 'Juliol', - 'Agost', - 'Setembre', - 'Octubre', - 'Novembre', - 'Decembre' - ], - // Days of the week - days : [ - 'Diumenge', - 'Dilluns', - 'Dimarts', - 'Dimecres', - 'Dijous', - 'Divendres', - 'Dissabte' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.de.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.de.js deleted file mode 100644 index 816409f..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.de.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add German Language support - * Translator: Grammatopoulos Athanasios-Vasileios (gramthanos@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'de', - // Months of the year - months : [ - 'Januar', - 'Februar', - 'März', - 'April', - 'Mai', - 'Juni', - 'Juli', - 'August', - 'September', - 'Oktober', - 'November', - 'Dezember' - ], - // Days of the week - days : [ - 'Sonntag', - 'Montag', - 'Dienstag', - 'Mittwoch', - 'Donnerstag', - 'Freitag', - 'Samstag' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.es.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.es.js deleted file mode 100644 index 1deeb55..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.es.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Spanish Language support - * Translator: Grammatopoulos Athanasios-Vasileios (gramthanos@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'es', - // Months of the year - months : [ - 'Enero', - 'Febrero', - 'Marzo', - 'Abril', - 'Mayo', - 'Junio', - 'Julio', - 'Agosto', - 'Septiembre', - 'Octubre', - 'Noviembre', - 'Diciembre' - ], - // Days of the week - days : [ - 'Domingo', - 'Lunes', - 'Martes', - 'Miércoles', - 'Jueves', - 'Viernes', - 'Sábado' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.fr.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.fr.js deleted file mode 100644 index 0e5bee4..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.fr.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add French Language support - * Translator: Grammatopoulos Athanasios-Vasileios (gramthanos@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'fr', - // Months of the year - months : [ - 'Janvier', - 'Février', - 'Mars', - 'Avril', - 'Mai', - 'Juin', - 'Juillet', - 'Août', - 'Septembre', - 'Octobre', - 'Novembre', - 'Décembre' - ], - // Days of the week - days : [ - 'Dimanche', - 'Lundi', - 'Mardi', - 'Mercredi', - 'Jeudi', - 'Vendredi', - 'Samedi' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.gr.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.gr.js deleted file mode 100644 index e42a2c5..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.gr.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Greek Language support - * Translator: Grammatopoulos Athanasios-Vasileios (gramthanos@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'gr', - // Months of the year - months : [ - 'Ιανουάριος', - 'Φεβρουάριος', - 'Μάρτιος', - 'Απρίλιος', - 'Μάιος', - 'Ιούνιος', - 'Ιούλιος', - 'Αύγουστος', - 'Σεπτέμβριος', - 'Οκτώβριος', - 'Νοέμβριος', - 'Δεκέμβριος' - ], - // Days of the week - days : [ - 'Κυριακή', - 'Δευτέρα', - 'Τρίτη', - 'Τετάρτη', - 'Πέμπτη', - 'Παρασκευή', - 'Σάββατο' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.hu.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.hu.js deleted file mode 100644 index 273cc42..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.hu.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Hungarian Language support - * Translator: Grammatopoulos Athanasios-Vasileios (gramthanos@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'hu', - // Months of the year - months : [ - 'Január', - 'Február', - 'Március', - 'Április', - 'Május', - 'Június', - 'Július', - 'Augusztus', - 'Szeptember', - 'Október', - 'November', - 'December' - ], - // Days of the week - days : [ - 'Vasárnap', - 'Hétfő', - 'Kedd', - 'Szerda', - 'Csütörtök', - 'Péntek', - 'Szombaton' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.it.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.it.js deleted file mode 100644 index cad9725..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.it.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Italian Language support - * Translator: Grammatopoulos Athanasios-Vasileios (gramthanos@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'it', - // Months of the year - months : [ - 'Gennaio', - 'Febbraio', - 'Marzo', - 'Aprile', - 'Maggio', - 'Giugno', - 'Luglio', - 'Agosto', - 'Settembre', - 'Ottobre', - 'Novembre', - 'Dicembre' - ], - // Days of the week - days : [ - 'Domenica', - 'Lunedì', - 'Martedì', - 'Mercoledì', - 'Giovedì', - 'Venerdì', - 'Sabato' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.ja.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.ja.js deleted file mode 100644 index 920f2a4..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.ja.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Japanese Language support - * Translator: Lucas Suehara (sueharaluke@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'ja', - // Months of the year - months : [ - '1月', - '2月', - '3月', - '4月', - '5月', - '6月', - '7月', - '8月', - '9月', - '10月', - '11月', - '12月' - ], - // Days of the week - days : [ - '日曜日', - '月曜日', - '火曜日', - '水曜日', - '木曜日', - '金曜日', - '土曜日' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.nl.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.nl.js deleted file mode 100644 index ad0e35f..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.nl.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Dutch Language support - * Translator: Mike (mikedebruijn@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'nl', - // Months of the year - months : [ - 'Januari', - 'Februari', - 'Maart', - 'April', - 'Mei', - 'Juni', - 'Juli', - 'Augustus', - 'September', - 'Oktober', - 'November', - 'December' - ], - // Days of the week - days : [ - 'Zondag', - 'Maandag', - 'Dinsdag', - 'Woensdag', - 'Donderdag', - 'Vrijdag', - 'Zaterdag' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.no.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.no.js deleted file mode 100644 index 772d0dd..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.no.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Norwegian Language support - * Translator: SpellCraft@github - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'no', - // Months of the year - months : [ - 'Januar', - 'Februar', - 'Mars', - 'April', - 'Mai', - 'Juni', - 'Juli', - 'August', - 'September', - 'Oktober', - 'November', - 'Desember' - ], - // Days of the week - days : [ - 'Søndag', - 'Mandag', - 'Tirsdag', - 'Onsdag', - 'Torsdag', - 'Fredag', - 'Lørdag' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.pt.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.pt.js deleted file mode 100644 index c226ab0..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.pt.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Portuguese Language support - * Translator: Alex Anderson (goodeath@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'pt', - // Months of the year - months : [ - 'Janeiro', - 'Fevereiro', - 'Março', - 'Abril', - 'Maio', - 'Junho', - 'Julho', - 'Agosto', - 'Setembro', - 'Outubro', - 'Novembro', - 'Dezembro' - ], - // Days of the week - days : [ - 'Domingo', - 'Segunda', - 'Terça', - 'Quarta', - 'Quinta', - 'Sexta', - 'Sábado' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.ru.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.ru.js deleted file mode 100644 index 5c2f90f..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.ru.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Russian Language support - * Translator: Grammatopoulos Athanasios-Vasileios (gramthanos@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'ru', - // Months of the year - months : [ - 'январь', - 'февраль', - 'март', - 'апрель', - 'май', - 'июнь', - 'июль', - 'август', - 'сентябрь', - 'октябрь', - 'ноябрь', - 'декабрь' - ], - // Days of the week - days : [ - 'воскресенье', - 'понедельник', - 'вторник', - 'среда', - 'четверг', - 'пятница', - 'суббота' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.sk.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.sk.js deleted file mode 100644 index 9dcc4f0..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.sk.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Slovak Language support - * Translator: Grammatopoulos Apostolos (greatapo@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'sk', - // Months of the year - months : [ - 'Január', - 'Február', - 'Marec', - 'Apríl', - 'Máj', - 'Jún', - 'Júl', - 'August', - 'September', - 'Október', - 'November', - 'December' - ], - // Days of the week - days : [ - 'Nedeľa', - 'Pondelok', - 'Utorok', - 'Streda', - 'Štvrtok', - 'Piatok', - 'Sobota' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.sv.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.sv.js deleted file mode 100644 index 4af9062..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.sv.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Swedish Language support - * Translator: olssonm@github - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'sv', - // Months of the year - months : [ - 'Januari', - 'Februari', - 'Mars', - 'April', - 'Maj', - 'Juni', - 'Juli', - 'Augusti', - 'September', - 'Oktober', - 'November', - 'December' - ], - // Days of the week - days : [ - 'Söndag', - 'Måndag', - 'Tisdag', - 'Onsdag', - 'Torsdag', - 'Fredag', - 'Lördag' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.template.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.template.js deleted file mode 100644 index 4535499..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.template.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - * jsCalendar language extension - * Add Language support - * Translator: (@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - // EDIT HERE THE LANGUAGE CODE ~~~~~~~~~~ - code : 'en', - // STOP EDIT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - // Months of the year - months : [ - // EDIT HERE THE MONTHS ~~~~~~~~~~~~~ - 'January', - 'February', - 'March', - 'April', - 'May', - 'June', - 'July', - 'August', - 'September', - 'October', - 'November', - 'December' - // STOP EDIT ~~~~~~~~~~~~~~~~~~~~~~~~ - ], - // Days of the week - days : [ - // EDIT HERE THE DAYS ~~~~~~~~~~~~~~~ - 'Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', - 'Saturday' - // STOP EDIT ~~~~~~~~~~~~~~~~~~~~~~~~ - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.tr.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.tr.js deleted file mode 100644 index 616fbb5..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.tr.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Turkish Language support - * Translator: Adem Yıldız (mgvjet@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'tr', - // Months of the year - months : [ - 'Ocak', - 'Şubat', - 'Mart', - 'Nisan', - 'Mayıs', - 'Haziran', - 'Temmuz', - 'Ağustos', - 'Eylül', - 'Ekim', - 'Kasım', - 'Aralık' - ], - // Days of the week - days : [ - 'Pazar', - 'Pazartesi', - 'Salı', - 'Çarşamba', - 'Perşembe', - 'Cuma', - 'Cumartesi' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.uk.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.uk.js deleted file mode 100644 index 27ef61c..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.uk.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * jsCalendar language extension - * Add Ukrainian Language support - * Translator: Oleksandr Shepetko (ashep@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'uk', - // Months of the year - months : [ - 'Січень', - 'Лютий', - 'Березень', - 'Квітень', - 'Травень', - 'Червень', - 'Липень', - 'Серпень', - 'Вересень', - 'Жовтень', - 'Листопад', - 'Грудень' - ], - // Days of the week - days : [ - 'Неділя', - 'Понеділок', - 'Вівторок', - 'Середа', - 'Четвер', - 'П\'ятниця', - 'Субота' - ] - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.lang.zh.js b/backoffice/vendors/jscalendar/js/jsCalendar.lang.zh.js deleted file mode 100644 index 405358a..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.lang.zh.js +++ /dev/null @@ -1,69 +0,0 @@ -/* - * jsCalendar language extension - * Add Chinese Language support - * Translator: Lucas Suehara (BlackEgg@github) - */ - -// We love anonymous functions -(function(){ - - // Get library - var jsCalendar = window.jsCalendar; - - // If jsCalendar is not loaded - if (typeof jsCalendar === 'undefined') { - // If there is no language to load array - if (typeof window.jsCalendar_language2load === 'undefined') { - window.jsCalendar_language2load = []; - } - // Wrapper to add language to load list - jsCalendar = { - addLanguage : function (language) { - // Add language to load list - window.jsCalendar_language2load.push(language); - } - }; - } - - // Add a new language - jsCalendar.addLanguage({ - // Language code - code : 'zh', - // Months of the year - months : [ - '一月', - '二月', - '三月', - '四月', - '五月', - '六月', - '七月', - '八月', - '九月', - '十月', - '十一月', - '十二月' - ], - // Days of the week - days : [ - '星期日', - '星期一', - '星期二', - '星期三', - '星期四', - '星期五', - '星期六' - ], - - // Overwrite day string format rules - dayStringParser : function(key, day) { - switch(key) { - case 'DD': - case 'dd': - case 'D': - return this.days[day].substring(2, 3); - } - } - }); - -})(); diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.min.css b/backoffice/vendors/jscalendar/js/jsCalendar.min.css deleted file mode 100644 index cb5c171..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.min.css +++ /dev/null @@ -1,29 +0,0 @@ -/* - * jsCalendar v1.4.4 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - -.jsCalendar *{margin:0;padding:0}.jsCalendar table,.jsCalendar table td,.jsCalendar table th{border:0}.jsCalendar table{background-color:#fff;border-collapse:collapse;border-radius:4px;box-shadow:0 0 2px rgba(0,0,0,.4);color:#000;font-family:Tahoma,Geneva,sans-serif;margin:5px}.jsCalendar thead .jsCalendar-title{height:40px;line-height:40px}.jsCalendar thead .jsCalendar-title-left{float:left}.jsCalendar thead .jsCalendar-title-right{float:right}.jsCalendar thead .jsCalendar-nav-left,.jsCalendar thead .jsCalendar-nav-right{border-radius:10px;color:#999;cursor:pointer;font-family:"Courier New",Courier,monospace;font-size:12px;font-weight:700;height:20px;line-height:20px;margin:10px 8px;text-align:center;transition:color .2s,background-color .2s;width:20px}.jsCalendar thead .jsCalendar-nav-left:hover,.jsCalendar thead .jsCalendar-nav-right:hover{background-color:#e2e2e2;color:#000}.jsCalendar thead .jsCalendar-nav-left{float:left}.jsCalendar thead .jsCalendar-nav-right{float:right}.jsCalendar thead .jsCalendar-title-name{cursor:default;float:left;font-size:18px;font-weight:lighter;padding:0 20px}.jsCalendar thead .jsCalendar-nav-left:after{content:"<"}.jsCalendar thead .jsCalendar-nav-right:after{content:">"}.jsCalendar thead .jsCalendar-week-days th{text-shadow:0 0 1px rgba(0,0,0,.2)}.jsCalendar tbody td,.jsCalendar thead .jsCalendar-week-days th{border-radius:18px;cursor:default;display:inline-block;font-size:12px;font-weight:lighter;height:36px;line-height:36px;margin:1px 2px;text-align:center;transition:color .1s,background-color .2s;width:36px}.jsCalendar tbody td:hover{background-color:#e6e6e6}.jsCalendar tbody td.jsCalendar-selected{background-color:#fff;border:2px solid #e6e6e6;box-sizing:content-box;height:32px;line-height:32px;width:32px}.jsCalendar tbody td.jsCalendar-current{background-color:#52c9ff;border-radius:18px;color:#fff}.jsCalendar tbody td.jsCalendar-next,.jsCalendar tbody td.jsCalendar-previous{color:#cacaca}.jsCalendar tbody td.jsCalendar-next:hover,.jsCalendar tbody td.jsCalendar-previous:hover{color:#fff}.jsCalendar thead{display:block;margin:4px 4px 0 4px}.jsCalendar tbody{display:block;margin:0 4px 4px 4px}.jsCalendar ::-moz-selection{background:#83d8ff}.jsCalendar ::selection{background:#83d8ff}.jsCalendar.yellow tbody td.jsCalendar-current{background-color:#ffe31b}.jsCalendar.yellow ::-moz-selection{background:#fde74c}.jsCalendar.yellow ::selection{background:#fde74c}.jsCalendar.orange tbody td.jsCalendar-current{background-color:#ffb400}.jsCalendar.orange ::-moz-selection{background:#ffb400}.jsCalendar.orange ::selection{background:#ffb400}.jsCalendar.red tbody td.jsCalendar-current{background-color:#f6511d}.jsCalendar.red ::-moz-selection{background:#f6511d}.jsCalendar.red ::selection{background:#f6511d}.jsCalendar.green tbody td.jsCalendar-current{background-color:#7fb800}.jsCalendar.green ::-moz-selection{background:#7fb800}.jsCalendar.green ::selection{background:#7fb800}.jsCalendar.material-theme table{border-radius:0}.jsCalendar.material-theme thead{background-color:#52c9ff;color:#fff;margin:0;padding:4px 4px 0 4px}.jsCalendar.material-theme thead .jsCalendar-title{display:block;position:relative}.jsCalendar.material-theme thead .jsCalendar-title-name{border-bottom:1px solid rgba(255,255,255,.4);color:#fff;font-size:16px;left:15px;position:absolute;right:15px;text-align:center}.jsCalendar.material-theme thead .jsCalendar-title-left,.jsCalendar.material-theme thead .jsCalendar-title-right{position:absolute;z-index:1}.jsCalendar.material-theme thead .jsCalendar-nav-left,.jsCalendar.material-theme thead .jsCalendar-nav-right{color:#fff}.jsCalendar.material-theme thead .jsCalendar-nav-left:hover,.jsCalendar.material-theme thead .jsCalendar-nav-right:hover{background-color:#03a9f4}.jsCalendar.material-theme thead .jsCalendar-title-right{right:0}.jsCalendar.material-theme thead .jsCalendar-week-days th{font-size:14px;text-shadow:none}.jsCalendar.material-theme.yellow thead{background-color:#ffe31b}.jsCalendar.material-theme.yellow thead .jsCalendar-nav-left:hover,.jsCalendar.material-theme.yellow thead .jsCalendar-nav-right:hover{background-color:#e2ca23}.jsCalendar.material-theme.orange thead{background-color:#ffb400}.jsCalendar.material-theme.orange thead .jsCalendar-nav-left:hover,.jsCalendar.material-theme.orange thead .jsCalendar-nav-right:hover{background-color:#d49600}.jsCalendar.material-theme.red thead{background-color:#f6511d}.jsCalendar.material-theme.red thead .jsCalendar-nav-left:hover,.jsCalendar.material-theme.red thead .jsCalendar-nav-right:hover{background-color:#bb3d16}.jsCalendar.material-theme.green thead{background-color:#7fb800}.jsCalendar.material-theme.green thead .jsCalendar-nav-left:hover,.jsCalendar.material-theme.green thead .jsCalendar-nav-right:hover{background-color:#639000}.jsCalendar.classic-theme table,.jsCalendar.classic-theme tbody td,.jsCalendar.classic-theme tbody td.jsCalendar-current,.jsCalendar.classic-theme thead .jsCalendar-nav-left,.jsCalendar.classic-theme thead .jsCalendar-nav-right,.jsCalendar.classic-theme thead .jsCalendar-week-days th{border-radius:0}.jsCalendar.classic-theme thead{background-color:#52c9ff;margin:0;padding:4px 4px 0 4px}.jsCalendar.classic-theme thead .jsCalendar-title,.jsCalendar.classic-theme thead .jsCalendar-title-row{display:block;width:100%}.jsCalendar.classic-theme thead .jsCalendar-title{position:relative}.jsCalendar.classic-theme thead .jsCalendar-title-name{color:#fff;font-size:16px;left:41px;position:absolute;right:41px;text-align:center;text-shadow:none}.jsCalendar.classic-theme thead .jsCalendar-title-left,.jsCalendar.classic-theme thead .jsCalendar-title-right{position:absolute;z-index:1}.jsCalendar.classic-theme thead .jsCalendar-title-right{right:0}.jsCalendar.classic-theme thead .jsCalendar-nav-left,.jsCalendar.classic-theme thead .jsCalendar-nav-right{color:#fff;text-shadow:none}.jsCalendar.classic-theme thead .jsCalendar-nav-left:hover,.jsCalendar.classic-theme thead .jsCalendar-nav-right:hover{background-color:#03a9f4}.jsCalendar.classic-theme thead .jsCalendar-week-days{background-color:#fff;display:block;margin:0 -4px}.jsCalendar.classic-theme thead .jsCalendar-week-days th{font-size:10px;height:20px;line-height:20px;text-shadow:none}.jsCalendar.classic-theme tbody td{border-left:1px solid #dadada;border-top:1px solid #dadada;margin:-1px 0 0 -1px;padding:1px 1px 0 1px;width:38px}.jsCalendar.classic-theme tbody{margin:0}.jsCalendar.classic-theme tbody td.jsCalendar-selected{background-color:#ccefff;border-bottom:0;border-left:1px solid #dadada;border-right:0;border-top:1px solid #dadada;height:36px;line-height:36px}.jsCalendar.classic-theme tbody td.jsCalendar-current.jsCalendar-selected{background-color:#52c9ff;text-shadow:0 0 3px #000}.jsCalendar.classic-theme.yellow thead{background-color:#ffe31b}.jsCalendar.classic-theme.yellow thead .jsCalendar-nav-left:hover,.jsCalendar.classic-theme.yellow thead .jsCalendar-nav-right:hover{background-color:#e2ca23}.jsCalendar.classic-theme.orange thead{background-color:#ffb400}.jsCalendar.classic-theme.orange thead .jsCalendar-nav-left:hover,.jsCalendar.classic-theme.orange thead .jsCalendar-nav-right:hover{background-color:#d49600}.jsCalendar.classic-theme.red thead{background-color:#f6511d}.jsCalendar.classic-theme.red thead .jsCalendar-nav-left:hover,.jsCalendar.classic-theme.red thead .jsCalendar-nav-right:hover{background-color:#bb3d16}.jsCalendar.classic-theme.green thead{background-color:#7fb800}.jsCalendar.classic-theme.green thead .jsCalendar-nav-left:hover,.jsCalendar.classic-theme.green thead .jsCalendar-nav-right:hover{background-color:#639000} diff --git a/backoffice/vendors/jscalendar/js/jsCalendar.min.js b/backoffice/vendors/jscalendar/js/jsCalendar.min.js deleted file mode 100644 index f953cfb..0000000 --- a/backoffice/vendors/jscalendar/js/jsCalendar.min.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * jsCalendar v1.4.4 - * - * - * MIT License - * - * Copyright (c) 2019 Grammatopoulos Athanasios-Vasileios - * - * 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. - * - */ - -var jsCalendar=function(){function c(){0!==arguments.length&&this._construct(arguments)}c.version="v1.4.4";c.prototype._construct=function(a){a=this._parseArguments(a);this._setTarget(a.target);this._init(a.options);this._initTarget();this._setDate(null!==a.date?a.date:this._target.dataset.hasOwnProperty("date")?this._target.dataset.date:new Date);if(!this._now)throw Error("jsCalendar: Date is outside range.");this._create();this._update()};c.prototype.languages={en:{months:"January February March April May June July August September October November December".split(" "), -days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),_dateStringParser:function(a,b){return c._defaultDateStringParser(a,b,this)},_dayStringParser:function(a,b){return c._defaultDayStringParser(a,b,this)}}};c.prototype._init=function(a){this._elements={};this._events={};this._events.date=[];this._events.month=[];this._events.day_render=[];this._events.date_render=[];this._events.month_render=[];this._date=this._now=null;this._selected=[];this.language={};this._parseOptions(a)}; -c.prototype._parseArguments=function(a){var b={target:null,date:null,options:{}};if(0===a.length)throw Error("jsCalendar: No parameters were given.");if(1===a.length)if(("object"===typeof HTMLElement?a[0]instanceof HTMLElement:a[0])&&"object"===typeof a[0]&&null!==a[0]&&1===a[0].nodeType&&"string"===typeof a[0].nodeName||"string"===typeof a[0])b.target=a[0];else{b.options=a[0];if("undefined"!==typeof a[0].target)b.target=a[0].target;else throw Error("jsCalendar: Not target was given.");"undefined"!== -typeof a[0].date&&(b.date=a[0].date)}else b.target=a[0],2<=a.length&&(b.date=a[1]),3<=a.length&&(b.options=a[2]);return b};c.options={language:"en",zeroFill:!1,monthFormat:"month",dayFormat:"D",firstDayOfTheWeek:1,navigator:!0,navigatorPosition:"both",min:!1,max:!1,onMonthRender:!1,onDayRender:!1,onDateRender:!1};c.prototype._parseOptions=function(a){this._options={};var b={},d;for(d in c.options)c.options.hasOwnProperty(d)&&(this._options[d]=c.options[d]),a.hasOwnProperty(d)?b[d]=a[d]:this._target.dataset.hasOwnProperty(d)&& -(b[d]=this._target.dataset[d]);"undefined"!==typeof b.zeroFill&&(this._options.zeroFill="false"!==b.zeroFill&&b.zeroFill?!0:!1);"undefined"!==typeof b.monthFormat&&(this._options.monthFormat=b.monthFormat);"undefined"!==typeof b.dayFormat&&(this._options.dayFormat=b.dayFormat);"undefined"!==typeof b.navigator&&(this._options.navigator="false"!==b.navigator&&b.navigator?!0:!1);"undefined"!==typeof b.navigatorPosition&&(this._options.navigatorPosition=b.navigatorPosition);"string"===typeof b.language&& -"undefined"!==typeof this.languages[b.language]&&(this._options.language=b.language);this.setLanguage(this._options.language);"undefined"!==typeof b.fdotw&&(b.firstDayOfTheWeek=b.fdotw);if("undefined"!==typeof b.firstDayOfTheWeek&&("number"===typeof b.firstDayOfTheWeek&&1<=b.firstDayOfTheWeek&&7>=b.firstDayOfTheWeek&&(this._options.firstDayOfTheWeek=b.firstDayOfTheWeek),"string"===typeof b.firstDayOfTheWeek))if(b.firstDayOfTheWeek.match(/^[1-7]$/))this._options.firstDayOfTheWeek=parseInt(b.firstDayOfTheWeek, -10);else if(this._options.firstDayOfTheWeek=this.language.days.indexOf(b.firstDayOfTheWeek)+1,1>this._options.firstDayOfTheWeek||7a.getTime()||!1!==this._options.max&&this._options.max.getTime()d&&(d+=7);var c=this.language,h=this._options.monthFormat.replace(/(MONTH|month|MMM|mmm|##|#|YYYY|yyyy)/g, -function(a){return c.dateStringParser(a,b)});a=this._getVisibleDates(a);var f=(new Date(b.getYear()+1900,b.getMonth()+1,0)).getDate(),g=-1;b.getYear()===this._now.getYear()&&b.getMonth()===this._now.getMonth()&&(g=d+this._now.getDate()-1);return{name:h,days:a,start:d+1,current:g,end:d+f}};c.prototype._getVisibleDates=function(a){a="undefined"===typeof a?this._date:e.parseDate(a);var b=[],d=new Date(a.getTime());d.setDate(1);d.setHours(0,0,0,0);var c=d.getDay()-(this._options.firstDayOfTheWeek-1); -0>c&&(c+=7);for(a=new Date(d.getTime());0a;a++)this._elements.headRows.push(document.createElement("tr")),this._elements.head.appendChild(this._elements.headRows[a]); -a=document.createElement("th");a.setAttribute("colspan",7);this._elements.headRows[0].className="jsCalendar-title-row";this._elements.headRows[0].appendChild(a);this._elements.headLeft=document.createElement("div");this._elements.headLeft.className="jsCalendar-title-left";a.appendChild(this._elements.headLeft);this._elements.month=document.createElement("div");this._elements.month.className="jsCalendar-title-name";a.appendChild(this._elements.month);this._elements.headRight=document.createElement("div"); -this._elements.headRight.className="jsCalendar-title-right";a.appendChild(this._elements.headRight);this._options.navigator&&(this._elements.navLeft=document.createElement("div"),this._elements.navLeft.className="jsCalendar-nav-left",this._elements.navRight=document.createElement("div"),this._elements.navRight.className="jsCalendar-nav-right","left"===this._options.navigatorPosition?(this._elements.headLeft.appendChild(this._elements.navLeft),this._elements.headLeft.appendChild(this._elements.navRight)): -("right"===this._options.navigatorPosition?this._elements.headRight.appendChild(this._elements.navLeft):this._elements.headLeft.appendChild(this._elements.navLeft),this._elements.headRight.appendChild(this._elements.navRight)),this._elements.navLeft.addEventListener("click",function(a){d.previous();var b=new Date(d._date.getTime());b.setDate(1);d._eventFire("month",b,a)},!1),this._elements.navRight.addEventListener("click",function(a){d.next();var b=new Date(d._date.getTime());b.setDate(1);d._eventFire("month", -b,a)},!1));this._elements.headRows[1].className="jsCalendar-week-days";a.className="jsCalendar-title";this._elements.days=[];for(a=0;7>a;a++)this._elements.days.push(document.createElement("th")),this._elements.headRows[1].appendChild(this._elements.days[this._elements.days.length-1]);this._elements.bodyRows=[];this._elements.bodyCols=[];for(a=0;6>a;a++)for(this._elements.bodyRows.push(document.createElement("tr")),this._elements.body.appendChild(this._elements.bodyRows[a]),b=0;7>b;b++)this._elements.bodyCols.push(document.createElement("td")), -this._elements.bodyRows[a].appendChild(this._elements.bodyCols[7*a+b]),this._elements.bodyCols[7*a+b].addEventListener("click",function(a){return function(b){d._eventFire("date",d._active[a],b)}}(7*a+b),!1)};c.prototype._selectDates=function(a){a=a.slice();for(var b=0;bthis._selected.indexOf(a[b])&&this._selected.push(a[b])};c.prototype._unselectDates=function(a){a=a.slice();for(var b=0;bd?b+d:d,0<=this._selected.indexOf(a.days[c].getTime())?this._elements.bodyCols[c].className="jsCalendar-selected":this._elements.bodyCols[c].removeAttribute("class");for(c=0;cc;c++){var e=this;this._elements.days[c].textContent=this._options.dayFormat.replace(/(DAY|day|DDD|ddd|DD|dd|D)/g,function(a){return e.language.dayStringParser(a,(c+e._options.firstDayOfTheWeek-1)%7)})}if(0c;c++)for(this._elements.days[c].removeAttribute("style"),b=0;b=a?!0:!1};c.prototype.isInMonth=function(a){if("undefined"===typeof a||null===a)return!1;a=e.parseDate(a);a.setHours(0,0,0,0);a.setDate(1);var b=e.parseDate(this._date);b.setHours(0,0,0,0);b.setDate(1);return a.getTime()===b.getTime()?!0:!1};c.prototype.setLanguage=function(a){if("string"!==typeof a)throw Error("jsCalendar: Invalid language code."); -if("undefined"===typeof this.languages[a])throw Error("jsCalendar: Language not found.");this._options.language=a;a=this.languages[a];this.language.months=a.months;this.language.days=a.days;this.language.dateStringParser=a._dateStringParser;this.language.dayStringParser=a._dayStringParser;this.refresh();return this};c.autoFind=function(){for(var a=document.getElementsByClassName("auto-jsCalendar"),b=0;bb.getMonth()?"0":"")+(b.getMonth()+1);case "M":return b.getMonth()+1;case "##":return(9>b.getMonth()?"0":"")+(b.getMonth()+1);case "#":return b.getMonth()+1;case "DAY":case "day":return c.days[b.getDay()];case "DDD":case "ddd":return c.days[b.getDay()].substring(0,3);case "dd":return c.days[b.getDay()].substring(0,2);case "d":return c.days[b.getDay()].substring(0,1);case "DD":return(9>= -b.getDate()?"0":"")+b.getDate();case "D":return b.getDate();case "YYYY":case "yyyy":return b.getYear()+1900}};c._defaultDayStringParser=function(a,b,c){switch(a){case "DAY":case "day":return c.days[b];case "DDD":case "ddd":return c.days[b].substring(0,3);case "DD":case "dd":return c.days[b].substring(0,2);case "D":return c.days[b].substring(0,1)}};(function(){if("undefined"!==typeof window.jsCalendar_language2load){for(;window.jsCalendar_language2load.length;)setTimeout(function(a){return function(){c.addLanguage(a)}}(window.jsCalendar_language2load.pop()), -0);delete window.jsCalendar_language2load}})();window.addEventListener("load",function(){c.autoFind()},!1);return c}(); diff --git a/backoffice/vendors/vcalendar/vcalendar.css b/backoffice/vendors/vcalendar/vcalendar.css deleted file mode 100644 index f4cb9ee..0000000 --- a/backoffice/vendors/vcalendar/vcalendar.css +++ /dev/null @@ -1,114 +0,0 @@ -:root { - --vcal-bg-color: #fff; - --vcal-border-radius: 0; - --vcal-border-color: #e7e9ed; - --vcal-today-bg-color: #10989E; - --vcal-today-color: #fff; - --vcal-selected-bg-color: #E7E9ED; - --vcal-selected-color: #333; -} - -#v-cal *, #v-cal *:before, #v-cal *:after { - box-sizing: border-box; -} - -#v-cal { - background-color: var(--vcal-bg-color); - border-radius: var(--vcal-border-radius); - border: solid 1px var(--vcal-border-color); - box-shadow: 0 4px 22px 0 rgba(0, 0, 0, 0.05); - margin: 0 auto; - overflow: hidden; - width: 100%; -} - -#v-cal .vcal-btn { - -moz-user-select: none; - -ms-user-select: none; - -webkit-appearance: button; - background: none; - border: 0; - color: inherit; - cursor: pointer; - font: inherit; - line-height: normal; - min-width: 27px; - outline: none; - overflow: visible; - padding: 0; - text-align: center; - &:active { - border-radius: var(--vcal-border-radius); - box-shadow: 0 0 0 2px rgba(var(--vcal-today-bg-color), 0.1) - } -} - -#v-cal .vcal-header { - align-items: center; - display: flex; - padding: 1.2rem 1.4rem; -} - -#v-cal .vcal-header svg { - fill: var(--vcal-today-bg-color); -} - -#v-cal .vcal-header__label { - font-weight: bold; - text-align: center; - width: 100%; -} - -#v-cal .vcal-week { - background-color: var(--vcal-selected-bg-color); - display: flex; - flex-wrap: wrap; -} - -#v-cal .vcal-week span { - flex-direction: column; - flex: 0 0 14.28%; - font-size: 1.2rem; - font-weight: bold; - max-width: 14.28%; - padding: 1.2rem 1.4rem; - text-align: center; - text-transform: uppercase; -} - -#v-cal .vcal-body { - background-color: rgba(var(--vcal-selected-bg-color), 0.3); - display: flex; - flex-wrap: wrap; -} - -#v-cal .vcal-date { - align-items: center; - background-color: #fff; - border-radius: var(--vcal-border-radius); - display: flex; - flex-direction: column; - flex: 0 0 14.28%; - max-width: 14.28%; - padding: 1.2rem 0; -} - -#v-cal .vcal-date--active { - cursor: pointer; -} - -#v-cal .vcal-date--today { - background-color: var(--vcal-today-bg-color); - color: var(--vcal-today-color); -} - -#v-cal .vcal-date--selected { - background-color: var(--vcal-selected-bg-color); - color: var(--vcal-selected-color); -} - -#v-cal .vcal-date--disabled { - border-radius: 0; - cursor: not-allowed; - opacity: 0.5; -} diff --git a/backoffice/vendors/vcalendar/vcalendar.js b/backoffice/vendors/vcalendar/vcalendar.js deleted file mode 100644 index 9b837db..0000000 --- a/backoffice/vendors/vcalendar/vcalendar.js +++ /dev/null @@ -1,127 +0,0 @@ -var vanillaCalendar = { - month: document.querySelectorAll('[data-calendar-area="month"]')[0], - next: document.querySelectorAll('[data-calendar-toggle="next"]')[0], - previous: document.querySelectorAll('[data-calendar-toggle="previous"]')[0], - label: document.querySelectorAll('[data-calendar-label="month"]')[0], - activeDates: null, - date: new Date(), - todaysDate: new Date(), - - init: function (options) { - this.options = options - this.date.setDate(1) - this.createMonth() - this.createListeners() - }, - - createListeners: function () { - var _this = this - this.next.addEventListener('click', function () { - _this.clearCalendar() - var nextMonth = _this.date.getMonth() + 1 - _this.date.setMonth(nextMonth) - _this.createMonth() - }) - // Clears the calendar and shows the previous month - this.previous.addEventListener('click', function () { - _this.clearCalendar() - var prevMonth = _this.date.getMonth() - 1 - _this.date.setMonth(prevMonth) - _this.createMonth() - }) - }, - - createDay: function (num, day, year) { - var newDay = document.createElement('div') - var dateEl = document.createElement('span') - dateEl.innerHTML = num - newDay.className = 'vcal-date' - newDay.setAttribute('data-calendar-date', this.date) - - // if it's the first day of the month - if (num === 1) { - if (day === 0) { - newDay.style.marginLeft = (6 * 14.28) + '%' - } else { - newDay.style.marginLeft = ((day - 1) * 14.28) + '%' - } - } - - if (this.options.disablePastDays && this.date.getTime() <= this.todaysDate.getTime() - 1) { - newDay.classList.add('vcal-date--disabled') - } else { - newDay.classList.add('vcal-date--active') - newDay.setAttribute('data-calendar-status', 'active') - } - - if (this.date.toString() === this.todaysDate.toString()) { - newDay.classList.add('vcal-date--today') - } - - newDay.appendChild(dateEl) - this.month.appendChild(newDay) - }, - - dateClicked: function () { - var _this = this - this.activeDates = document.querySelectorAll( - '[data-calendar-status="active"]' - ) - for (var i = 0; i < this.activeDates.length; i++) { - this.activeDates[i].addEventListener('click', function (event) { - var picked = document.querySelectorAll( - '[data-calendar-label="picked"]' - )[0] - picked.innerHTML = this.dataset.calendarDate - _this.removeActiveClass() - this.classList.add('vcal-date--selected') - }) - } - }, - - createMonth: function () { - var currentMonth = this.date.getMonth() - while (this.date.getMonth() === currentMonth) { - this.createDay( - this.date.getDate(), - this.date.getDay(), - this.date.getFullYear() - ) - this.date.setDate(this.date.getDate() + 1) - } - // while loop trips over and day is at 30/31, bring it back - this.date.setDate(1) - this.date.setMonth(this.date.getMonth() - 1) - - this.label.innerHTML = - this.monthsAsString(this.date.getMonth()) + ' ' + this.date.getFullYear() - this.dateClicked() - }, - - monthsAsString: function (monthIndex) { - return [ - 'January', - 'Febuary', - 'March', - 'April', - 'May', - 'June', - 'July', - 'August', - 'September', - 'October', - 'November', - 'December' - ][monthIndex] - }, - - clearCalendar: function () { - vanillaCalendar.month.innerHTML = '' - }, - - removeActiveClass: function () { - for (var i = 0; i < this.activeDates.length; i++) { - this.activeDates[i].classList.remove('vcal-date--selected') - } - } -} \ No newline at end of file diff --git a/backoffice/vendors/vcalendar/vcalendar.min.css b/backoffice/vendors/vcalendar/vcalendar.min.css deleted file mode 100644 index 368dc65..0000000 --- a/backoffice/vendors/vcalendar/vcalendar.min.css +++ /dev/null @@ -1 +0,0 @@ -#v-cal *,#v-cal :after,#v-cal :before{-webkit-box-sizing:border-box;box-sizing:border-box}#v-cal{background-color:#fff;border-radius:0;border:1px solid #e7e9ed;-webkit-box-shadow:0 4px 22px 0 rgba(0,0,0,.05);box-shadow:0 4px 22px 0 rgba(0,0,0,.05);margin:0 auto;overflow:hidden;width:100%}#v-cal .vcal-btn{-moz-user-select:none;-ms-user-select:none;-webkit-appearance:button;background:none;border:0;color:inherit;cursor:pointer;font:inherit;line-height:normal;min-width:27px;outline:none;overflow:visible;padding:0;text-align:center}#v-cal .vcal-btn:active{border-radius:0;-webkit-box-shadow:0 0 0 2px rgba(16,152,158,.1);box-shadow:0 0 0 2px rgba(16,152,158,.1)}#v-cal .vcal-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;padding:19.2px 22.4px;padding:1.2rem 1.4rem}#v-cal .vcal-header svg{fill:#10989e}#v-cal .vcal-header__label{font-weight:700;text-align:center;width:100%}#v-cal .vcal-week{background-color:#e7e9ed;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}#v-cal .vcal-week span{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:0;-ms-flex:0 0 14.28%;flex:0 0 14.28%;font-size:19.2px;font-size:1.2rem;font-weight:700;max-width:14.28%;padding:19.2px 22.4px;padding:1.2rem 1.4rem;text-align:center;text-transform:uppercase}#v-cal .vcal-body{background-color:rgba(231,233,237,.3);-ms-flex-wrap:wrap;flex-wrap:wrap}#v-cal .vcal-body,#v-cal .vcal-date{display:-webkit-box;display:-ms-flexbox;display:flex}#v-cal .vcal-date{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff;border-radius:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:0;-ms-flex:0 0 14.28%;flex:0 0 14.28%;max-width:14.28%;padding:19.2px 0;padding:1.2rem 0}#v-cal .vcal-date--active{cursor:pointer}#v-cal .vcal-date--today{background-color:#10989e;color:#fff}#v-cal .vcal-date--selected{background-color:#e7e9ed;color:#333}#v-cal .vcal-date--disabled{border-radius:0;cursor:not-allowed;opacity:.5} \ No newline at end of file diff --git a/backoffice/vendors/vcalendar/vcalendar.min.js b/backoffice/vendors/vcalendar/vcalendar.min.js deleted file mode 100644 index 6404b3a..0000000 --- a/backoffice/vendors/vcalendar/vcalendar.min.js +++ /dev/null @@ -1 +0,0 @@ -var vanillaCalendar={month:document.querySelectorAll('[data-calendar-area="month"]')[0],next:document.querySelectorAll('[data-calendar-toggle="next"]')[0],previous:document.querySelectorAll('[data-calendar-toggle="previous"]')[0],label:document.querySelectorAll('[data-calendar-label="month"]')[0],activeDates:null,date:new Date,todaysDate:new Date,init:function(t){this.options=t,this.date.setDate(1),this.createMonth(),this.createListeners()},createListeners:function(){var t=this;this.next.addEventListener("click",function(){t.clearCalendar();var e=t.date.getMonth()+1;t.date.setMonth(e),t.createMonth()}),this.previous.addEventListener("click",function(){t.clearCalendar();var e=t.date.getMonth()-1;t.date.setMonth(e),t.createMonth()})},createDay:function(t,e,a){var n=document.createElement("div"),s=document.createElement("span");s.innerHTML=t,n.className="vcal-date",n.setAttribute("data-calendar-date",this.date),1===t&&(n.style.marginLeft=0===e?6*14.28+"%":14.28*(e-1)+"%"),this.options.disablePastDays&&this.date.getTime()<=this.todaysDate.getTime()-1?n.classList.add("vcal-date--disabled"):(n.classList.add("vcal-date--active"),n.setAttribute("data-calendar-status","active")),this.date.toString()===this.todaysDate.toString()&&n.classList.add("vcal-date--today"),n.appendChild(s),this.month.appendChild(n)},dateClicked:function(){var t=this;this.activeDates=document.querySelectorAll('[data-calendar-status="active"]');for(var e=0;e