πŸžπŸ“…A JavaScript calendar that has everything you need.

Overview

TOAST UI Calendar

A JavaScript schedule calendar that is full featured. Now your service just got the customizable calendar.

GitHub release npm GitHub license PRs welcome code with hearth by NHN

tui-calendar-demo-nhn-corp

🚩 Table of Contents

Collect statistics on the use of open source

TOAST UI Calendar applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI Calendar is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname (e.g. > β€œui.toast.com") is to be collected and the sole purpose is nothing but to measure statistics on the usage.

To disable GA use the options:

var calendar = new Calendar('#calendar', {
  usageStatistics: false
});

πŸ“™ Documents

You can also see the older versions of API page on the releases page.

✨ How Cool: Monthly, Weekly, Daily and Various View Types.

Monthly Weekly
image image
Daily 2 Weeks
image image

Easy to Use: Dragging and Resizing a Schedule

Dragging Resizing
image image

Ready to Use: Default Popups

Creation Popup Detail Popup
image image

🎨 Features

  • Supports various view types: daily, weekly, monthly(6 weeks, 2 weeks, 3 weeks)
  • Supports efficient management of milestone and task schedules
  • Supports the narrow width of weekend
  • Supports changing start day of week
  • Supports customizing the date and schedule information UI(including a header and a footer of grid cell)
  • Supports adjusting a schedule by mouse dragging
  • Supports customizing UI by theme

🐾 Examples

  • Basic : Example of using default options.

πŸ’Ύ Install

TOAST UI products can be used by using the package manager or downloading the source directly. However, we highly recommend using the package manager.

Via Package Manager

TOAST UI products are registered in two package managers, npm and bower. You can conveniently install it using the commands provided by each package manager. When using npm, be sure to use it in the environment Node.js is installed.

npm

$ npm install --save tui-calendar # Latest version
$ npm install --save tui-calendar@<version> # Specific version

bower

$ bower install tui-calendar # Latest version
$ bower install tui-calendar#<tag> # Specific version

Via Contents Delivery Network (CDN)

TOAST UI products are available over the CDN powered by TOAST Cloud.

You can use the CDN as below.

Insert style sheet files

<link rel="stylesheet" type="text/css" href="https://uicdn.toast.com/tui-calendar/latest/tui-calendar.css" />

<!-- If you use the default popups, use this. -->
<link rel="stylesheet" type="text/css" href="https://uicdn.toast.com/tui.date-picker/latest/tui-date-picker.css" />
<link rel="stylesheet" type="text/css" href="https://uicdn.toast.com/tui.time-picker/latest/tui-time-picker.css" />

Insert JavaScript file

<script src="https://uicdn.toast.com/tui.code-snippet/v1.5.2/tui-code-snippet.min.js"></script>
<script src="https://uicdn.toast.com/tui.time-picker/latest/tui-time-picker.min.js"></script>
<script src="https://uicdn.toast.com/tui.date-picker/latest/tui-date-picker.min.js"></script>
<script src="https://uicdn.toast.com/tui-calendar/latest/tui-calendar.js"></script>

If you want to use a specific version, use the tag name instead of latest in the url's path.

The CDN directory has the following structure.

tui-calendar/
β”œβ”€ latest/
β”‚  β”œβ”€ tui-calendar.js
β”‚  └─ tui-calendar.min.js
β”‚  └─ tui-calendar.css
β”‚  └─ tui-calendar.min.css
β”œβ”€ v1.0.0/
β”‚  β”œβ”€ ...

Download Source Files

πŸ› Wrappers

πŸ”¨ Usage

HTML

Place a <div></div> where you want TOAST UI Calendar rendered.

<body>
...
<div id="calendar" style="height: 800px;"></div>
...
</body>

JavaScript

Using namespace in browser environment

var Calendar = tui.Calendar;

Using module format in node environment

var Calendar = require('tui-calendar'); /* CommonJS */
require("tui-calendar/dist/tui-calendar.css");

// If you use the default popups, use this.
require("tui-date-picker/dist/tui-date-picker.css");
require("tui-time-picker/dist/tui-time-picker.css");
import Calendar from 'tui-calendar'; /* ES6 */
import "tui-calendar/dist/tui-calendar.css";

// If you use the default popups, use this.
import 'tui-date-picker/dist/tui-date-picker.css';
import 'tui-time-picker/dist/tui-time-picker.css';

Then you can create a calendar instance with options to set configuration.

var calendar = new Calendar('#calendar', {
  defaultView: 'month',
  taskView: true,
  template: {
    monthDayname: function(dayname) {
      return '<span class="calendar-week-dayname-name">' + dayname.label + '</span>';
    }
    ...
  }
});

Or you can use jquery plugin. You must include jquery before using this jquery plugin.

// jquery wrapper
var $calEl = $('#calendar').tuiCalendar({
  defaultView: 'month',
  taskView: true,
  template: {
    monthDayname: function(dayname) {
      return '<span class="calendar-week-dayname-name">' + dayname.label + '</span>';
    }
    ...
  }
});

// You can get calendar instance
var calendarInstance = $calEl.data('tuiCalendar');

calendarInstance.createSchedules([...]);

🌏 Browser Support

Chrome Chrome IE Internet Explorer Edge Edge Safari Safari Firefox Firefox
Latest +9 Latest Latest Latest

πŸ”§ Pull Request Steps

TOAST UI products are open source, so you can create a pull request(PR) after you fix issues. Run npm scripts and develop yourself with the following process.

Setup

Fork develop branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check to haveany errors.

$ git clone https://github.com/{owner}/tui.calendar.git
$ cd tui.calendar
$ npm install
$ npm run test

Develop

Let's start development! You can see your code is reflected as soon as you saving the codes by running a server. Don't miss adding test cases and then make green rights.

Run webpack-dev-server

$ npm run serve

Run karma test

$ npm run test

Pull Request

Before PR, check to test lastly and then check any errors. If it has no error, commit and then push it!

For more information on PR's step, please see links of Contributing section.

πŸ’¬ Contributing

πŸ”© Dependency

🍞 TOAST UI Family

πŸš€ Used By

πŸ“œ License

This software is licensed under the MIT Β© NHN.

Comments
  • How to show calendarInfo data on calendar schedules

    How to show calendarInfo data on calendar schedules

    Version

    Latest Version

    Expected Behavior

    How can i show CalendarInfo in this Schedule data :

    var schedules = [
                {id: 489273, title: 'Workout for 2020-04-05', isAllDay: false, start: '2020-02-01T11:30:00+09:00', end: '2020-02-01T12:00:00+09:00', goingDuration: 30, comingDuration: 30, color: '#ffffff', isVisible: true, bgColor: '#69BB2D', dragBgColor: '#69BB2D', borderColor: '#69BB2D', calendarId: 'Post', category: 'time', dueDateClass: '', customStyle: 'cursor: default;', isPending: false, isFocused: false, isReadOnly: false, isPrivate: false, location: '', attendees: '', recurrenceRule: '', state: ''},
                {id: 18073, title: 'completed with blocks', isAllDay: false, start: '2020-02-17T09:00:00+09:00', end: '2020-02-17T10:00:00+09:00', color: '#ffffff', isVisible: true, bgColor: '#54B8CC', dragBgColor: '#54B8CC', borderColor: '#54B8CC', calendarId: 'Event', category: 'time', dueDateClass: '', customStyle: '', isPending: false, isFocused: false, isReadOnly: false, isPrivate: false, location: '', attendees: '', recurrenceRule: '', state: ''}
            ];
    

    On your example (https://nhn.github.io/tui.calendar/latest/tutorial-example00-basic)

    You used chance.js to create dummy data , but i'm using above data for schedules .

    I want to some schedule data on calendar with calendar info

    Invalid Question Category: Usage 
    opened by Anzil-Aufait 19
  • Last saturday of February isn't working on timezones with Daylight Saving Time

    Last saturday of February isn't working on timezones with Daylight Saving Time

    Version

    1.7.0 | Wed Aug 08 2018

    Development Environment

    Chrome and Firefox, Windows 10

    Current Behavior

    Day not showing

    In February, a Saturday just is repeating and the next one is not working. It's happening in the last week of the month. It's not rendering, but if a create the date programmatically (I use a script that load from a WebMethod and add it), it's rendered before the Sunday. Look that the day Feb-16 is repeated and the week is starting on Saturday, not on Monday. Even if I switch to week or day view, it's still now working. I can't add or edit events.

    Detail on the start of date

    Days not showing in each year

    Year|Day -----|------ 2018|Feb-24 2019|Feb-23 2020|Feb-22 2021|Feb-27 2022|Feb-26

    Expected Behavior

    Load the calendar correctly, with all days.

    Bug NHN P❕❕❕ Category: Timezone 
    opened by augustocb23 19
  • Navigation between Calendar views

    Navigation between Calendar views

    How can I customize this calendar from month view to year view? I want to be able to navigate through all the months of the year to view different events, am finding it hard to find where you implemented the buttons you used at the top of the calendar. Am using react typescript Thank you.

    Question Answered 
    opened by GloriaTwebaze 16
  • tui.calender JSON

    tui.calender JSON

    I have downloaded Tui.calender from github. Am trying to find How the calender displaying the data whether its in the of json or what? Can any one help me to find out.

    Good First Issue πŸ™‹β€β™€οΈ πŸ™‹β€β™‚οΈ Question 
    opened by timepass-ok 16
  • Calendar monthly show date Range Start - End only

    Calendar monthly show date Range Start - End only

    Version

    use cdn

    Development Environment

    Mozilla Firefox

    Current Behavior

    1. i want to make absent calender for my salesman, so i can choose date from start until end. how to make it show the date only that i choose monthly ??
    2. if i am choose august 26 until september 10, if i click pervious like calendar.prev() it will become to july, how make it disabled ?

    Expected Behavior

    1. i think your tui calendar is awesome, and tui calendar can do what i want to do, but i dont know to do it. i try this too :
    if(date>new Date('2018-08-28')){
                    var template = '<span class="tui-full-calendar-weekday-grid-date">' + date.getDate() + '</span>';
                  }
    

    in my monthGridHeader, it will remove the date. hope you can help me @dongsik-yoo

    Question Answered 
    opened by okkypt 15
  • Reactjs Wrapper for tui.calendar

    Reactjs Wrapper for tui.calendar

    I am planning to write a Reactjs wrapper for this nice package, and have read the vuejs and angularjs implementations, however they seem to differ from the pattern that React suggests i.e. 'data down, actions up'.

    Therefore just want to ask if it is preferred to follow the other wrappers or figure our the React way?

    Question 
    opened by IniZio 15
  • Substitute util.bind with Function.bind

    Substitute util.bind with Function.bind

    As of https://caniuse.com/#feat=mdn-javascript_builtins_function_bind Function.bind is supported in IE +9, Edge +12 , Firefox +4, Chrome +7, Safari +5.1.

    ScheduleCreationPopup._onClickListeners() uses Function.bind since April 2018, and TimeCreationGuide._onDrag uses it since Mai 2017, so the aforementioned browser versions are required that long.

    β€’ Replace util.bind(x,y) with x.bind(y) β€’ Update README.md with the minimal supported versions.

    Please check if the PR fulfills these requirements

    • [ ] It's submitted to right branch according to our branching model
    • [x] It's right issue type on title
    • [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
    • [ ] The commit message follows our guidelines
    • [ ] Tests for the changes have been added (for bug fixes/features)
    • [x] Docs have been added/updated (for bug fixes/features)
    • [x] It does not introduce a breaking change or has description for the breaking change
    opened by dilyanpalauzov 14
  • fix: DST timezone bug

    fix: DST timezone bug

    Please check if the PR fulfills these requirements

    • [ ] It's submitted to right branch according to our branching model
    • [ ] It's right issue type on title
    • [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
    • [ ] The commit message follows our guidelines
    • [ ] Tests for the changes have been added (for bug fixes/features)
    • [ ] Docs have been added/updated (for bug fixes/features)
    • [ ] It does not introduce a breaking change or has description for the breaking change

    Description

    #257 #258 #283


    Thank you for your contribution to TOAST UI product. πŸŽ‰ 😘 ✨

    opened by dongsik-yoo 12
  • Unable to create schedule

    Unable to create schedule

    Version

    latest (cdn)

    Development Environment

    Chrome 78.0.3904.70 macOS Catalina 10.15

    Current Behavior

    I've wanted to create schedules. But it doesn't work (I've changed how the data/schedules.js worked. Others remain unchanged)

    function generateScheduleDetails(data) {
        data.activities.forEach((value, index, array) => {
          console.log('Adding ', value);
          var schedule = new ScheduleInfo();
    
          schedule.id = value.id;
          schedule.calendarId = value.calendarId;
    
          schedule.title = value.title;
          schedule.body = value.body;
    
          schedule.start = new Date(value.start);
          schedule.end = new Date(value.end);
    
          var calendar = findCalendar(value.calendarId);
    
          schedule.color = calendar.color;
          schedule.bgColor = calendar.bgColor;
          schedule.dragBgColor = calendar.dragBgColor;
          schedule.borderColor = calendar.borderColor;
    
          if (value.isAllday) {
            schedule.category = 'allday';
          } else {
            schedule.category = 'time';
          }
    
          if (schedule.category === 'milestone') {
            schedule.color = schedule.bgColor;
            schedule.bgColor = 'transparent';
            schedule.dragBgColor = 'transparent';
            schedule.borderColor = 'transparent';
          }
          console.log(schedule);
    
          ScheduleList.push(schedule);
        });
      }
    

    An example of the log adding image

    Expected Behavior

    The calendar should have some schedule pop up.

    I've also tried to use the chrome console to fetch the schedule by cal.getSchedule(id, calendarId). But it said undefined

    Invalid inactive 
    opened by LoSunny 11
  • How to remove the scrollbar

    How to remove the scrollbar

    Hello, I would like to answer this question please (I am a French beginner developer so apologize me in advance if the answer is obvious ...)

    Thank you in advance and again forgive me if I missed something that has already been said.

    Version

    tui-calendar: 1.7.0

    Development Environment

    Windows 10, chrome, Vue.js

    Current Behavior

    capture

    Expected Behavior

    Remove the scrollbar

    Question 
    opened by LieLust 11
  • Edit of All day Schedule Events, using default date editor/picker, produces wrong end date

    Edit of All day Schedule Events, using default date editor/picker, produces wrong end date

    Edited and corrected version

    Describe the bug

    1. Create an all-day event of any number of days.
    2. Now click on it and then click on Edit (using the default popups)
    3. Edit to be a different end date, with end date > start date
    4. The erroneous result is that the end date is one less than it should be.

    Note that if you click Update without changing anything, the end date is correct.

    To Reproduce

    Steps to reproduce the behavior:

    1. Month View, default popups
        this.calendar = new Calendar('#calendar', {
          defaultView: 'month',
          taskView: true,
          useCreationPopup: true,
          useDetailPopup: true,
          template: {
            monthDayname: function (dayname) {
              return '<span class="calendar-week-dayname-name">' + dayname.label + '</span>';
            }
          }
        });
    
    1. Click on a date and add an all-day event of 1 day in length: Event Created

    2. Now click on the event so that the detail popup appears: Event details

    3. Click Edit and in new pop up make an event of exactly two days (end = start + 1 day): Event Editing

    4. Click UPDATE and result has the end date = start date Event Result

    Expected behavior

    It should create an event of two days.

    Screenshots

    See above

    Desktop (please complete the following information):

    • OS: Windows 10 Professional
    • Browser: Chrome
    • Version: 94.0.4606.61 (Official Build) (64-bit)

    Additional context

    Add any other context about the problem here.

    Bug 
    opened by knightwing-network 10
  • default DetailPopup does not disappear

    default DetailPopup does not disappear

    Version

    2.1.3

    Test Environment

    Chrome

    Current Behavior

    In my project, the useDetailPopup option is set true and the useFormPopup is false. After selecting en event I get the default DetailPopup. But if I click on "Edit" in this popup, the popup does not close.

    // Write example code
    

    Expected Behavior

    Can I close the default DetailPopup somewhere in beforeUpdateEvent? If so, how?

    Enhancement Category: Popup - Detail View 2.0 
    opened by dimabin 1
  • Recalculate events height on window resize

    Recalculate events height on window resize

    How do I force Calendar to recalculate events height on window resize?

    I am using Angular, with flex container:

    <div #calendar class="calendar"></div>
    
    @HostListener('window:resize', ['$event'])
    onResize() {
      this.calendar.render();
    }
    
    .calendar {
      @apply flex flex-col h-screen;
    
      .toastui-calendar-layout {
        @apply flex-1;
      }
    }
    

    Before window resize:

    Screenshot 2022-12-14 at 14 53 16

    After windows resize:

    Screenshot 2022-12-14 at 14 54 03

    Events overflow, instead of compacting, like this (hard reload):

    Screenshot 2022-12-14 at 14 54 57

    I tried calendar.clear() along with calendar.createEvents(), but the result is the same.

    The only way it worked is by calendar.destroy() along with calendar.createEvents(), but this causes horrible flickering.

    Enhancement Category: Usage 2.0 
    opened by micobarac 1
  • Doesn't work with Angular

    Doesn't work with Angular

    I created a new Angular 14 application and added @toast-ui/calendar dependency.

    <div #calendar></div>

    import { AfterViewInit, Component } from '@angular/core';
    import Calendar from '@toast-ui/calendar';
    
    @Component({
      selector: 'app-root',
      templateUrl: './app.component.html',
      styleUrls: ['./app.component.scss'],
    })
    export class AppComponent implements AfterViewInit {
      ngAfterViewInit(): void {
        const calendar = new Calendar('#calendar', {
          usageStatistics: false,
        });
      }
    }
    

    @import "@toast-ui/calendar/dist/toastui-calendar.min.css";

    The application won't compile, throwing a bunch of errors:

    Error: node_modules/@toast-ui/calendar/types/factory/calendarCore.d.ts:3:24 - error TS2307: Cannot find module '../model/eventModel' or its corresponding type declarations.
    
    3 import EventModel from "../model/eventModel";
                             ~~~~~~~~~~~~~~~~~~~~~
    
    
    Error: node_modules/@toast-ui/calendar/types/factory/calendarCore.d.ts:5:31 - error TS2307: Cannot find module '../utils/eventBus' or its corresponding type declarations.
    
    5 import type { EventBus } from "../utils/eventBus";
                                    ~~~~~~~~~~~~~~~~~~~
    
    
    Error: node_modules/@toast-ui/calendar/types/factory/calendarCore.d.ts:9:82 - error TS2307: Cannot find module '../types/store' or its corresponding type declarations.
    
    9 import type { CalendarState, CalendarStore, Dispatchers, InternalStoreAPI } from "../types/store";
                                                                                       ~~~~~~~~~~~~~~~~
    
    
    Error: node_modules/@toast-ui/calendar/types/types/events.d.ts:2:29 - error TS2307: Cannot find module '../model/eventModel' or its corresponding type declarations.
    
    2 import type EventModel from "../model/eventModel";
                                  ~~~~~~~~~~~~~~~~~~~~~
    
    
    Error: node_modules/@toast-ui/calendar/types/types/events.d.ts:3:31 - error TS2307: Cannot find module '../model/eventUIModel' or its corresponding type declarations.
    
    3 import type EventUIModel from "../model/eventUIModel";
                                    ~~~~~~~~~~~~~~~~~~~~~~~
    
    
    Error: node_modules/@toast-ui/calendar/types/types/events.d.ts:5:29 - error TS2307: Cannot find module '../utils/collection' or its corresponding type declarations.
    
    5 import type Collection from "../utils/collection";
                                  ~~~~~~~~~~~~~~~~~~~~~
    
    
    Error: node_modules/@toast-ui/calendar/types/types/events.d.ts:6:32 - error TS2307: Cannot find module './components/common' or its corresponding type declarations.
    
    6 import type { StyleProp } from "./components/common";
    

    Screenshot 2022-12-13 at 11 19 09

    There are no model and util directories inside library.

    Bug Category: Typescript 2.0 
    opened by micobarac 2
  • afterRenderEvent not fired when in readonly mode

    afterRenderEvent not fired when in readonly mode

    Version

    TOAST UI Calendar 2nd Edition @version 2.1.3

    Test Environment

    Browser: Chrome Version 108.0.5359.99 (Official Build) (64-bit)

    Current Behavior

    When using the calendar in readonly mode the afterRenderEvent is not fired when redering events, this is the code i use:

    const app = calendar.querySelector(".tui-main-calendar");
    
    calendar.tuiCalendar = new tui.Calendar(app, {
        defaultView: 'month',
        disableDblClick: true,
        usageStatistics: false,
        useDetailPopup: false,
        useFormPopup: false,
        isReadOnly: true,
        month: {
            startDayOfWeek: 1,
            dayNames: ['Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
        },
        theme: {
            common: {
                holiday: {
                    color: 'black',
                },
            },
            month: {
                holidayExceptThisMonth: {
                    color: 'rgba(51, 51, 51, 0.4)',
                },
            },
        }
    });
    
    calendar.tuiCalendar.on('afterRenderEvent', (eventObj) => {
        console.log(eventObj);
    });
    
    calendar.tuiCalendar.createEvents([
        {
            id: 'event3',
            calendarId: 'cal2',
            title: 'Vacation',
            start: '2022-12-27',
            end: '2022-12-27',
            description: "Deze periode hebben we vacantie",
            isAllday: true,
            category: 'allday',
        },
        {
            id: 'event3',
            calendarId: 'cal2',
            title: 'Vacation',
            start: '2022-12-29',
            end: '2022-12-29',
            description: "Deze periode hebben we vacantie",
            isAllday: true,
            category: 'allday',
        },
    ]);
    

    When i switch isReadOnly to false it will output 2 events in the console. When isReadOnly is true it will not log anything.

    Expected Behavior

    I couldn't find anything in the docs about this event not working in read only mode (some other events in the docs do state isReadOnly: false is needed). But the events that need isReadOnly: false are mostly events that only happen when editing/changing/removing things which isn't posible in read only mode so it makes sense. I think there are many use cases where you want the read only mode in combination with this event.

    Bug Good First Issue πŸ™‹β€β™€οΈ πŸ™‹β€β™‚οΈ Category: Monthly 2.0 
    opened by stanverbakel 2
  •  According to the official example, the error

    According to the official example, the error "formData. forEach is not a function" is reported after clicking the Edit Form Update button

    Version

    2.1.3 react:16.13.1

    Test Environment

    Current Behavior

    // Write example code
    const getCalInstance = useCallback(() => calendarRef.current?.getInstance?.(), []);
    const onBeforeUpdateEvent = (updateData) => {
        console.group('onBeforeUpdateEvent');
        console.log(updateData);
        console.groupEnd();
    
        const targetEvent = updateData.event;
        const changes = { ...updateData.changes };
    
        getCalInstance().updateEvent(targetEvent.id, targetEvent.calendarId, changes);
      };
    
      <Calendar
        height="900px"
        calendars={initialCalendars}
        month={{ startDayOfWeek: 1 }}
        events={initialEvents}
        template={{
          allday(event) {
            return `<span style="color: #fff; height: 80px; display: inline-block; background-color: ${event.backgroundColor};">${event.title}</span>`;
          },
          alldayTitle(e) {
            return 'alldayTitle';
          },
          popupEdit() {
            return 'ηΌ–θΎ‘';
          },
          popupDelete() {
            return 'εˆ ι™€';
          },
          popupSave() {
            return '保存';
          },
          popupUpdate() {
            return 'ζ›΄ζ–°';
          },
        }}
        // theme={theme}
        timezone={{
          zones: [
            {
              timezoneName: 'Asia/Shanghai',
              displayLabel: 'εŒ—δΊ¬ζ—Άι—΄',
              tooltip: 'UTC+09:00',
            },
          ],
        }}
        useDetailPopup
        useFormPopup
        view={selectedView}
        week={{
          eventView: ['allday'],
          taskView: false,
        }}
        ref={calendarRef}
        onAfterRenderEvent={onAfterRenderEvent}
        onBeforeDeleteEvent={onBeforeDeleteEvent}
        onClickDayname={onClickDayName}
        onClickEvent={onClickEvent}
        onClickTimezonesCollapseBtn={onClickTimezonesCollapseBtn}
        onBeforeUpdateEvent={onBeforeUpdateEvent}
      />
    

    Expected Behavior

    Can be edited normally

    Category: React Wrapper 2.0 
    opened by lyl-moon 1
  • Overlapping events in week view not taking full available space in column

    Overlapping events in week view not taking full available space in column

    Version

    2.1.3

    Test Environment

    Chrome, Windows 11

    Current Behavior

    Event width in week view is distributed evenly according to the number of events on a given day.

    But if at least three events overlap and one of them is very long, consecutive single overlaps are receiving only the fractional width and don't take the rest of the space in the column.

    See screenshot below: grafik

    You can recreate this in the demo calendar https://ui.toast.com/tui-calendar

    Expected Behavior

    The single overlaps should take the whole available space, like: grafik

    This used to be the behaviour in older versions of the calendar, e.g. 1.0.6. (react wrapper)

    Bug 2.0 
    opened by Olbertism 0
  • [email protected](Aug 16, 2022)

    Fixes

    • Fixed an issue that the default form popup is accessible through the event details popup even though the option is set to useFormPopup: false by @adhrinae in https://github.com/nhn/tui.calendar/pull/1252

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]@2.1.3

    Source code(tar.gz)
    Source code(zip)
  • [email protected](Aug 9, 2022)

    Fixes

    • Fixed an error occured when selecting date/time with week.hourStart/hourEnd option (fix #1238) by @adhrinae in https://github.com/nhn/tui.calendar/pull/1242

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]@2.1.2

    Source code(tar.gz)
    Source code(zip)
  • [email protected](Aug 3, 2022)

    Fixes

    • Fixed to check if the moving event is in the previous/next month or year in the week/day view by @adhrinae in https://github.com/nhn/tui.calendar/pull/1236
    • Fixed that inputs are cleared when toggling 'All day' checkbox or changing calendar (fix #1233) by @adhrinae in https://github.com/nhn/tui.calendar/pull/1235

    Maintenance

    • Improved vue-calendar and react-calendar examples by @dotaitch in https://github.com/nhn/tui.calendar/pull/1230

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]@2.1.1

    Source code(tar.gz)
    Source code(zip)
  • [email protected](Jul 28, 2022)

    Features

    • Collapsing duplicate events by @dotaitch in https://github.com/nhn/tui.calendar/pull/1215, https://github.com/nhn/tui.calendar/pull/1226

    Fixes

    • Fixed that dragging event is not working as expected when the week.hourStart option is set (fix #1228) by @adhrinae in https://github.com/nhn/tui.calendar/pull/1229
    • Replaced a hard-coded constant by @HansSchouten in https://github.com/nhn/tui.calendar/pull/1225

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]@2.1.0

    Source code(tar.gz)
    Source code(zip)
  • [email protected](Jul 22, 2022)

    Fixes

    • Fixed that a 30-minutes event with goingDuration and comingDuration property might have a wrong height by @lja1018 in https://github.com/nhn/tui.calendar/pull/1206
    • Fixed the way rendering borders in monthly view by @lja1018 in https://github.com/nhn/tui.calendar/pull/1207
    • Fixed the issue that the startDayOfWeek was not working correctly in weekly view (fix #1198) by @lja1018 in https://github.com/nhn/tui.calendar/pull/1214
    • Fixed the issue that rendering the grid selection was not accurate when the narrowWeekend option was enabled by @lja1018 in https://github.com/nhn/tui.calendar/pull/1211
    • Fixed that the clickEvent instance event was invoked when dragging events (fix #1216) by @adhrinae in https://github.com/nhn/tui.calendar/pull/1218
    • Fixed that events at the edge of the week were not rendered while the timezone option is enabled by @adhrinae in https://github.com/nhn/tui.calendar/pull/1217
    • Fixed that events in the standard timezone had an hour difference when the system timezone is using DST(Daylight Saving Time) by @adhrinae in https://github.com/nhn/tui.calendar/pull/1222

    Maintenance

    • Bumped terser from 4.8.0 to 4.8.1 by @dependabot in https://github.com/nhn/tui.calendar/pull/1220
    • Updated dependencies by @lja1018 in https://github.com/nhn/tui.calendar/pull/1221

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]@2.0.5

    Source code(tar.gz)
    Source code(zip)
  • [email protected](Jul 11, 2022)

    Fixes

    • Hotfix - Removed unnecessary global variable by @adhrinae in https://github.com/nhn/tui.calendar/pull/1203
      • If you're using 2.0.3 with timezone options It doesn't work properly. Please update to this version immediately

    Maintenance

    • env: polish package build process by @adhrinae in https://github.com/nhn/tui.calendar/pull/1204

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]@2.0.4

    Source code(tar.gz)
    Source code(zip)
  • [email protected](Jul 11, 2022)

    Fixes

    • Fixed detail popup position after scrolling by @lja1018 in https://github.com/nhn/tui.calendar/pull/1192
    • Fixed see more popup position when it is rendered out of the calendar container by @lja1018 in https://github.com/nhn/tui.calendar/pull/1196
    • Set proper height when moving and resizing an event with a going or coming duration by @dotaitch in https://github.com/nhn/tui.calendar/pull/1195
    • Set default calendarId when opening the event form popup by @adhrinae in https://github.com/nhn/tui.calendar/pull/1194

    Maintenance

    • Fixed broken CI by @adhrinae in https://github.com/nhn/tui.calendar/pull/1193
    • Replaced a raw esbuild build script with Vite by @adhrinae in https://github.com/nhn/tui.calendar/pull/1200
    • Bumped moment from 2.29.3 to 2.29.4 by @dependabot in https://github.com/nhn/tui.calendar/pull/1201

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]@2.0.3

    Source code(tar.gz)
    Source code(zip)
  • [email protected](Jul 6, 2022)

    Fixes

    • Fixed details popup not opening on click for read-only events by @deva-ct in https://github.com/nhn/tui.calendar/pull/1178, https://github.com/nhn/tui.calendar/pull/1179
    • Fixed border-radius values of horizontal events by @dotaitch in https://github.com/nhn/tui.calendar/pull/1182

    Documentation

    • Added a guide on changing the filename by @dotaitch in https://github.com/nhn/tui.calendar/pull/1174
    • Improved english translation by @adhrinae in https://github.com/nhn/tui.calendar/pull/1181, https://github.com/nhn/tui.calendar/pull/1185
    • Updated contributing guidelines by @dotaitch in https://github.com/nhn/tui.calendar/pull/1183
    • Fixed import css path by @Tragio in https://github.com/nhn/tui.calendar/pull/1175

    Maintenance

    • Added support for IE11 in the examples by @dotaitch in https://github.com/nhn/tui.calendar/pull/1177
    • Added actions updating relative links in readme before publishing npm and tuidoc by @dotaitch in https://github.com/nhn/tui.calendar/pull/1176
    • Exported the /dist folder to import css file by @adhrinae in https://github.com/nhn/tui.calendar/pull/1187
    • Organized dependencies by @adhrinae in https://github.com/nhn/tui.calendar/pull/1188

    Typings

    • Exported more types by @adhrinae in https://github.com/nhn/tui.calendar/pull/1186

    Full Changelog: https://github.com/nhn/tui.calendar/compare/[email protected]

    Source code(tar.gz)
    Source code(zip)
  • v2.0.1(Jun 30, 2022)

    Fix

    • Fixed an issue that a bundle for IE11 is not generated properly

    Full Changelog: https://github.com/nhn/tui.calendar/compare/v2.0.0...v2.0.1

    Source code(tar.gz)
    Source code(zip)
  • v2.0.0(Jun 30, 2022)

    Announcing TOAST UI Calendar v2 πŸŽ‰

    We are happy to be able to show you a new TOAST UI Calendar.

    This major update does not include many new features, but we have spent a lot of time rebuilding most of the applications for the modern JavaScript development environment. Thanks to this, we expect that implementing new features and debugging will be easier than the legacy codebase.

    What's new

    Rebuilt with Preact X

    The previous version was written in Vanilla JS and targeted ES5 without Babel. While the codebase was getting bigger, it was getting harder to debug and understand.

    Also, the previous version cannot handle multiple instances in the same document because of its fundamental limitation coming from handlebars.js.

    After a lengthy investigation and discussion, we decided to use Preact X as the core of the calendar, and rewrite the calendar with it. We expect that the future development with Preact will make us easier to bring new features and fix problems.

    However, This changes browser compatibility. It can only support IE11+ though the previous version could support IE9+. And you need to use the separate bundle to support older browsers like IE11, which has a bigger bundle (about 30% bigger than the normal bundle).

    For more info, Please check the documentation.

    Bundle size improvement

    Thanks to the new development environment, We could reduce the bundle size of the calendar. See the image below(from BundlePhobia):

    iShot_2022-07-01_10 40 50

    Document Enhancement

    Even though All TOAST UI Products have powerful features, It has been hard to provide easy-to-understand and useful documents. Especially, TOAST UI Calendar needs to have more clear documents for users.

    With this release, we wanted to give you better documentation, considering 'How can we make docs easier to read and easier to find what users want.

    We also provide API documentation and examples through our site. But The full details are and will be in here.

    Caveats

    • The term Schedule is changed to Event.Β https://github.com/nhn/tui.calendar/issues/429
    • Polished unclear option properties.Β For more information, check the Option documentation.
    • You can now use the nested objects for setting the theme.Β For more information, check the Theme documentation.

    How to use the new version

    For quick starters, You can install the npm package to your project:

    # Installing package
    npm install --save @toast-ui/calendar
    
    import Calendar from '@toast-ui/calendar';
    
    const container = document.getElementById('calendar');
    const calendar = new Calendar(container);
    

    But we recommend you to read the Getting Started guide first.

    Leaving feedback

    If you have any questions about the project, leave a question in the 'Q&A' of GitHub Discussion. (But maybe there's an answer in the documentation)

    Or create an issue with 2.0 and Bug labels when you find a bug.

    Source code(tar.gz)
    Source code(zip)
  • v2.0.0-alpha.4(Jun 22, 2022)

    What's Changed

    • refactor: rename dayname to dayName by @adhrinae in https://github.com/nhn/tui.calendar/pull/1159
    • feat: implement week.showNowIndicator option by @dotaitch in https://github.com/nhn/tui.calendar/pull/1162
    • feat: implement scrollToNow by @lja1018 in https://github.com/nhn/tui.calendar/pull/1160
    • docs: use @toast-ui/doc to generate documentation by @adhrinae in https://github.com/nhn/tui.calendar/pull/1163
    • feat: pass grid selection elements when selectDateTime custom event is fired by @lja1018 in https://github.com/nhn/tui.calendar/pull/1164
    • feat: implement clearGridSelections by @lja1018 in https://github.com/nhn/tui.calendar/pull/1165

    Full Changelog: https://github.com/nhn/tui.calendar/compare/v2.0.0-alpha.3...v2.0.0-alpha.4

    Source code(tar.gz)
    Source code(zip)
  • v2.0.0-alpha.3(Jun 16, 2022)

    What's Changed

    • env: add action steps to publish docs by @adhrinae in https://github.com/nhn/tui.calendar/pull/1158
    • feat: close a popup when clicking outside by @dotaitch in https://github.com/nhn/tui.calendar/pull/1155
    • feat: implement missing week options by @adhrinae in https://github.com/nhn/tui.calendar/pull/1157
    • feat: calibrate timed event move by @lja1018 in https://github.com/nhn/tui.calendar/pull/1153
    • fix: setDate reflects renderRange by @lja1018 in https://github.com/nhn/tui.calendar/pull/1156

    Full Changelog: https://github.com/nhn/tui.calendar/compare/v2.0.0-alpha.2...v2.0.0-alpha.3

    Source code(tar.gz)
    Source code(zip)
  • v2.0.0-alpha.2(Jun 14, 2022)

    What's Changed

    • env: export type declaration files of index.ts only by @dotaitch in https://github.com/nhn/tui.calendar/pull/1152
    • refactor: remove EventUIModel.create and use new EventUIModel by @dotaitch in https://github.com/nhn/tui.calendar/pull/1150
    • feat: implement missing month options by @adhrinae in https://github.com/nhn/tui.calendar/pull/1151

    Full Changelog: https://github.com/nhn/tui.calendar/compare/v2.0.0-alpha.1...v2.0.0-alpha.2

    Source code(tar.gz)
    Source code(zip)
  • v2.0.0-alpha.1(Jun 10, 2022)

    Announcing TOAST UI Calendar v2 πŸŽ‰

    We are happy to be able to show you a new TOAST UI Calendar.

    This major update does not include many new features, but we have spent a lot of time rebuilding most of the applications for the modern JavaScript development environment. Thanks to this, we expect that implementing new features and debugging will be easier than the legacy codebase.

    What's new

    Rebuilt with Preact X

    The previous version was written in Vanilla JS and targeted ES5 without Babel. While the codebase was getting bigger, it was getting harder to debug and understand it.

    Also, the previous version cannot handle multiple instances in the same document because of its fundamental limitation coming from handlebars.js.

    After a lengthy investigation and discussion, we made the decision to use Preact X as the core of the calendar, and rewrite the calendar with it. We expect that the future development with Preact will make us easier to bring new features and fix problems.

    However, This changes browser compatibility. It can only support IE11+ though the previous version could support IE9+. And you need to use the separate bundle to support older browsers like IE11, which has a bigger size bundle (about 30% bigger than the normal bundle).

    Document Enhancement

    Even though All TOAST UI Products have powerful features, It has been hard to provide easy-to-understand and useful documents. As the same as other products, Β TOAST UI Calendar needs to have more clear documents for users.

    With this release, we wanted to give you better documentation, considering 'How can we make docs easier to read and easier to find what users want. At the very early stage of it, we wrote docs from the bottom and wrapped them using Storybook Docs.

    Storybook Docs is only in the midway of this documentation journey. We will embrace other tools for making better documentation of all products in the long term.

    ⚠️ We wrote the Korean documentation first. For non-Korean speakers, Please be patient until we upload the English documentation as soon as possible.

    (🚧 In Development) Server Side Rendering Support

    We made progress that making the calendar supports server-side rendering. We hope this is helpful for users using TOAST UI Calendar for their modern frontend development environment.

    But there is still room for improvement in this feature. It needs to be tested in the various frameworks or hand-made SSR environments, etc.

    For more information, please refer to the renderToString method in the doc.

    Others

    • The term Schedule is changed to Event.Β https://github.com/nhn/tui.calendar/issues/429
    • Polished unclear option properties.Β For more information, check the Option documentation.
    • You can now use the nested objects for setting the theme.Β For more information, check the Theme documentation.

    Road to the public release

    • We will fix any critical bugs and develop in-development features, and options as our first priority.
    • The alpha release doesn't include React & Vue wrapper components. We are going to make them. You can make your own wrapper, though.

    How to use the new version & Leaving feedback

    You can now use the new calendar, installing the npm package to your project:

    # Installing package
    npm install @toast-ui/[email protected]
    
    import Calendar from '@toast-ui/calendar';
    
    const container = document.getElementById('calendar');
    const calendar = new Calendar(container);
    

    Please note that the alpha version has many pitfalls.

    If you have any questions about the project, leave a question in the 'Q&A' of GitHub Discussion. (But maybe there's an answer in the documentation)

    Or create an issue with 2.0 and Bug labels when you found a bug.

    Source code(tar.gz)
    Source code(zip)
Ultimate calendar for your React app.

React-Calendar Ultimate calendar for your React app. Pick days, months, years, or even decades Supports range selection Supports virtually any languag

Wojciech Maj 2.8k Dec 27, 2022
An iCal API to see the 42 events in a calendar.

42cal An iCal API to see the 42 events in a calendar. Installation You have to create a new intra app (Settings > API > REGISTER A NEW APP). Fill in t

Valentin 4 Jan 17, 2022
Create Persian Calendar as html helper with tag builder c# , and convert selected persian date to gregorian date

Persian-Calendar Use JS,Html,CSS,C# White theme for Persian Calendar , easy to use. Create Persian Calendar as html helper. Use Tag builder in c# for

Tareq Awwad 4 Feb 28, 2022
Converts Gregorian calendar to ethiopian

It is package that Converts Gregorian calendar to ethiopian. And also Ethiopian calendar to Gregorian calendar. Ethiopian calendar is unique for having 13 months, 12 months each with 13 days and 1 more month with 5 or 6 days. It is also 7/8 years behind the European/Gregorian calendar.

Dagmawi zewdu 5 Mar 4, 2022
All your classes. One calendar file

CruzCal Check out the Figma for the designs What is CruzCal? A productivity tool for UC Santa Cruz students. CruzCal lets users select their Class and

null 2 May 13, 2022
Parse, validate, manipulate, and display dates in javascript.

Moment.js A JavaScript date library for parsing, validating, manipulating, and formatting dates. Project Status Moment.js is a legacy project, now in

Moment.js 47.1k Jan 2, 2023
⏳ Modern JavaScript date utility library βŒ›οΈ

date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js. ?? Documentation

date-fns 30.6k Dec 29, 2022
lightweight, powerful javascript datetimepicker with no dependencies

flatpickr - javascript datetime picker Motivation Almost every large SPA or project involves date and time input. Browser's native implementations of

flatpickr 15.4k Jan 3, 2023
A refreshing JavaScript Datepicker β€” lightweight, no dependencies, modular CSS

Pikaday A refreshing JavaScript Datepicker Lightweight (less than 5kb minified and gzipped) No dependencies (but plays well with Moment.js) Modular CS

null 7.9k Jan 4, 2023
A lightweight javascript timezone library

Isn't it weird how we can do math in our head, but not date math? how many days until the end of the year? what time was it, 11 hours ago? is it lunch

spencer kelly 3.7k Dec 29, 2022
πŸ•‘ js-joda is an immutable date and time library for JavaScript.

js-joda is an immutable date and time library for JavaScript. It provides a simple, domain-driven and clean API based on the ISO8601 calendar.

null 1.5k Dec 27, 2022
DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.

TimezoneJS.Date A timezone-enabled, drop-in replacement for the stock JavaScript Date. The timezoneJS.Date object is API-compatible with JS Date, with

Matthew Eernisse 830 Nov 20, 2022
TheDatepicker - Pure JavaScript Datepicker πŸ“…

Pure JavaScript Datepicker by Slevomat.cz.

The Datepicker 27 Dec 16, 2022
Vanillajs-datepicker - A vanilla JavaScript remake of bootstrap-datepicker for Bulma and other CSS frameworks

Vanilla JS Datepicker A vanilla JavaScript remake of bootstrap-datepicker for Bulma and other CSS frameworks This package is written from scratch as E

null 489 Dec 30, 2022
lightweight, powerful javascript datetimepicker with no dependencies

flatpickr - javascript datetime picker Motivation Almost every large SPA or project involves date and time input. Browser's native implementations of

flatpickr 15.4k Jan 9, 2023
A tiny and fast zero-dependency date-picker built with vanilla Javascript and CSS.

A tiny zero-dependency and framework-agnostic date picker that is incredibly easy to use! Compatible with any web UI framework, vanilla JS projects, and even HTML-only projects!

Nezar 1 Jan 22, 2021
πŸžπŸ“…A JavaScript calendar that has everything you need.

A JavaScript schedule calendar that is full featured. Now your service just got the customizable calendar. ?? Table of Contents Collect statistics on

NHN 10.4k Jan 5, 2023
A thing that watches everything everything I do.

Stalker ?? You know that thing on my website that shows what I'm doing? Well, it used to be manually updated, but that got boring. Now I have a comple

Kognise 45 Dec 14, 2022
Sync your personal calendar to your work calendar, privately πŸ’

Callibella ?? It is considered unusual among Callibella in that it gives birth to only a single baby instead of twins, the norm for Callibella. Wikiep

Yo'av Moshe 19 Oct 12, 2022
:sunglasses: Everything you need to know about Client-side Storage.

awesome-web-storage Everything you need to know about Client-side Storage. Table of Contents Introduction Browser Support Cookies Pros Cons API Useful

Varun Malhotra 420 Dec 12, 2022