From 0d727e74c0701f5fd1b950148bc6653e26f5d604 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 3 Jul 2023 20:46:13 +0300 Subject: [PATCH] update fullcalendar --- .../Crm/Resources/metadata/app/jsLibs.json | 18 +- client/modules/crm/css/fullcalendar.css | 1494 ----------------- client/modules/crm/css/fullcalendar.print.css | 208 --- .../crm/res/templates/calendar/calendar.tpl | 3 - .../crm/src/views/calendar/calendar.js | 544 ++++-- frontend/less/espo/custom.less | 11 +- .../espo/misc/fullcalendar/fullcalendar.less | 275 +-- frontend/less/glass/custom.less | 4 +- frontend/libs.json | 14 +- package-lock.json | 175 +- package.json | 4 +- 11 files changed, 712 insertions(+), 2038 deletions(-) delete mode 100644 client/modules/crm/css/fullcalendar.css delete mode 100644 client/modules/crm/css/fullcalendar.print.css diff --git a/application/Espo/Modules/Crm/Resources/metadata/app/jsLibs.json b/application/Espo/Modules/Crm/Resources/metadata/app/jsLibs.json index e403b0f381..7b318559dd 100644 --- a/application/Espo/Modules/Crm/Resources/metadata/app/jsLibs.json +++ b/application/Espo/Modules/Crm/Resources/metadata/app/jsLibs.json @@ -2,8 +2,22 @@ "fullcalendar": { "path": "client/modules/crm/lib/fullcalendar.js", "devPath": "client/modules/crm/lib/original/fullcalendar.js", - "exportsTo": "$.fn", - "exportsAs": "fullCalendar", + "exportsTo": "window", + "exportsAs": "FullCalendar", + "sourceMap": true + }, + "fullcalendar-moment": { + "path": "client/modules/crm/lib/fullcalendar-moment.js", + "devPath": "client/modules/crm/lib/original/fullcalendar-moment.js", + "exportsTo": "FullCalendar", + "exportsAs": "Moment", + "sourceMap": true + }, + "fullcalendar-moment-timezone": { + "path": "client/modules/crm/lib/fullcalendar-moment-timezone.js", + "devPath": "client/modules/crm/lib/original/fullcalendar-moment-timezone.js", + "exportsTo": "FullCalendar", + "exportsAs": "MomentTimezone", "sourceMap": true }, "vis": { diff --git a/client/modules/crm/css/fullcalendar.css b/client/modules/crm/css/fullcalendar.css deleted file mode 100644 index 4dbdb83b74..0000000000 --- a/client/modules/crm/css/fullcalendar.css +++ /dev/null @@ -1,1494 +0,0 @@ -/*! - * FullCalendar v3.7.0 Stylesheet - * Docs & License: https://fullcalendar.io/ - * (c) 2017 Adam Shaw - */ - - -.fc { - direction: ltr; - text-align: left; -} - -.fc-rtl { - text-align: right; -} - -body .fc { /* extra precedence to overcome jqui */ - font-size: 1em; -} - - -/* Colors ---------------------------------------------------------------------------------------------------*/ - - -.fc-highlight { /* when user is selecting cells */ - background: #bce8f1; - opacity: .3; -} - -.fc-bgevent { /* default look for background events */ - background: rgb(143, 223, 130); - opacity: .3; -} - -.fc-nonbusiness { /* default look for non-business-hours areas */ - /* will inherit .fc-bgevent's styles */ - background: #d7d7d7; -} - - -/* Buttons (styled