-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* touch-up month-view weekday-headers the month view has a scroll-bar, the header needs some right-margin. the 15px is taken from the week- and day-view which has a scroll-bar and that right-margin for the header (div.rbc-time-header style attribute). * dnd: update week-wrapper updating WeekWrapper.js to the upstream version of Nov, 6th 2020. [1] fixes crashes on drop into all-day in the week view of the calendar. this is the upstream version, just with a different semicolon-style and one typo fix. [1]: https://github.com/jquense/react-big-calendar/blob/34aec3a64d018ec0f9dce780a6d4eeb03692c9fd/src/addons/dragAndDrop/WeekWrapper.js * dnd: fix drop on time-gutter previously dropping on the time-gutter leaves calendar in drag state. fix is to add the ability of specific drop targets and cancel/reset drag- and-drop if the drop was not on an allowed drop target. streamlined with [1]. [1]: jquense/react-big-calendar#1901 * add week, day and agenda view add three of the rbc views to the calendar: 1. week; 2. day; 3. agenda - row details by single-click on week and day events - background color for day/week view (non-full-day events) - css: reset day-event border - css: bootstrap needs button style reset (time-header) - css: center agenda no events text * show week-of-year show the week-number in the top-left corner of the timer-gutter. display format is weekOfYearFormat (localizer), which is decorated as the default moment localizer does not have it. * all-/cross- day event basically, given the end-date is undefined|null|"", the event is all-day. additionally an event is displayed in the all-day slot if it is across multiple days. previously there was no need to handle all- or cross-days to this extend for any calendar event as only the original week view was in use and additionally the year view. now this is needed as the week and day views are active and they display event with time(s) and within the all-/cross-day slot on top. this is handling events with a bogus end-date gracefully: in case an end-date is before the start-date, the start-date is leading and the end-date of the event will be the events start-date plus a fixed amount of time (e.g. one hour). this is useful for events with date and time (with minute precision). and an offset of 12 hours is necessary to display the event on the correct day within all views, incl. the year view. * all-/cross- day: drag-and-drop with the changes to the event model and the new views, dragging and dropping events have more features now, like turning an event into an all-day event. row updates are done more specifically to the columns that actually need changes. the events collection is updated specifically, too. previously it was not updated and re-created after row changes did propagate. when there are full-day-dates due to start date without minute precision (all day events), and the end date is also w/o minute precision, then it needs to be noon (12:00) not start of day (00:00) as otherwise the day would not count as end (the year view seems most picky). it is only necessary to modify the end-date to make it into the all-day slot if it is on the same day. * create new events by selecting creating on the same-day slot a time-range creates a new event. if the events start date can not be edited (e.g. formula), the selection is prevented (handleSelecting() implementation). NOTE: intentionally new events are without a title (cdb, rdb) * minor fix redundant variable * update code: 1. adjust some styles; 2. update translation; 3. fix move event if the end date comes from the formula column; 4. check whether the container in the WeekWrapper is valid. Co-authored-by: renjie-run <rj.aiyayao@gmail.com>
- Loading branch information
1 parent
c2f018c
commit 6193dac
Showing
20 changed files
with
336 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"Calendar": "Календарь", | ||
"Submit": "Сохранить", | ||
"Cancel": "Отмена", | ||
"Start_Date": "Поле дата начала", | ||
"End_Date_Optional": "Поле дата окончания (необязательно)", | ||
"Color_From": "Цвет поля", | ||
"Unnamed_record": "Нет имени", | ||
"more": "больше", | ||
".rbc.localizer.moment.dateFormat": "DD", | ||
".rbc.localizer.moment.dayFormat": "DD ddd", | ||
".rbc.localizer.moment.weekdayFormat": "ддд", | ||
".rbc.localizer.moment.monthFormat": "МММ", | ||
".rbc.localizer.moment.yearHeaderFormat": "ГГГГ", | ||
".rbc.localizer.moment.dayHeaderFormat": "ММ-дд-ДД", | ||
".rbc.localizer.moment.agendaDateFormat": "ddd MMM DD", | ||
".rbc.localizer.moment.yearMonthWeekdayFormat": "дд", | ||
".rbc.localizer.moment.yearMonthDateFormat": "D", | ||
".rbc.localizer.moment.weekOfYearFormat": "WW", | ||
".rbc.messages.date": "Дата", | ||
".rbc.messages.time": "Время", | ||
".rbc.messages.event": "Событие", | ||
".rbc.messages.allDay": "Весь день", | ||
".rbc.messages.week": "Неделя", | ||
".rbc.messages.work_week": "Рабочая неделя", | ||
".rbc.messages.day": "День", | ||
".rbc.messages.month": "Месяц", | ||
".rbc.messages.previous": "Назад", | ||
".rbc.messages.next": "Вперед", | ||
".rbc.messages.yesterday": "Вчера", | ||
".rbc.messages.tomorrow": "завтрашний день", | ||
".rbc.messages.today": "Сегодня", | ||
".rbc.messages.agenda": "Повестка дня", | ||
".rbc.messages.year": "Год", | ||
".rbc.messages.noEventsInRange": "В этом диапазоне событий нет.", | ||
"No_date_field_to_place_records_on_the_calendar": "Нет поля с датой для размещения записей в календаре.", | ||
"There_are_no_records": "Запись отсутствует.", | ||
"Default_View": "Вид по умолчанию", | ||
"New_View": "Новый Вид", | ||
"Rename_View": "Переименовать Вид", | ||
"Delete_View": "Удалить Вид", | ||
"Name": "Имя", | ||
"Name_is_required": "Имя обязательно", | ||
"Settings": "Настройки", | ||
"Table": "Таблица", | ||
"View": "Вид", | ||
"Title": "Поле заголовка", | ||
"No_options": "Нет опций", | ||
"Not_used": "Не используется", | ||
"Choose_the_time_range": "Выберите временной диапазон", | ||
"Out_of_range": "Можно выбрать не более 12 месяцев." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.