Skip to content

Commit

Permalink
1.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dohyung Ahn committed Nov 15, 2021
1 parent e040962 commit de2fb7e
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 39 deletions.
2 changes: 1 addition & 1 deletion dist/tui-calendar.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 22 additions & 27 deletions dist/tui-calendar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* TOAST UI Calendar
* @version 1.15.0 | Thu Oct 21 2021
* @version 1.15.1 | Mon Nov 15 2021
* @author NHN FE Development Lab <dl_javascript@nhn.com>
* @license MIT
*/
Expand Down Expand Up @@ -6937,7 +6937,7 @@ model = {
/**
* string trim
* @param {string} str string to trim
* @returns {string} trimed string
* @returns {string} trimmed string
*/
trim: function(str) {
return str.replace(spaceRx, '');
Expand Down Expand Up @@ -7323,7 +7323,7 @@ Point.prototype.ceil = function() {
};

/**
* Ceil self coodinates.
* Ceil self coordinates.
* @returns {Point} Point calculated.
*/
Point.prototype._ceil = function() {
Expand Down Expand Up @@ -7411,7 +7411,7 @@ Point.prototype.toString = function() {
};

/**
* Return coodinates to array. [x, y]
* Return coordinates to array. [x, y]
* @returns {number[]} coordinate array.
*/
Point.prototype.toArray = function() {
Expand Down Expand Up @@ -7620,7 +7620,7 @@ var STANDARD_TO_DST = 1;
var DST_TO_STANDARD = -1;

/**
* Get the timezone offset by timestampe
* Get the timezone offset by timestamp
* @param {number} timestamp - timestamp
* @returns {number} timezone offset
* @private
Expand All @@ -7632,7 +7632,7 @@ function getTimezoneOffset(timestamp) {
}

/**
* Get the custome timezone offset by timestampe
* Get the custom timezone offset by timestamp
* @param {number} timestamp - timestamp
* @returns {number} timezone offset
* @private
Expand Down Expand Up @@ -9081,6 +9081,10 @@ Base.prototype.updateSchedule = function(schedule, options) {
schedule.set('isReadOnly', options.isReadOnly);
}

if (!util.isUndefined(options.isPrivate)) {
schedule.set('isPrivate', options.isPrivate);
}

if (options.location) {
schedule.set('location', options.location);
}
Expand Down Expand Up @@ -16014,9 +16018,9 @@ MonthGuide.prototype._getCoordByDate = function(date) {
};

/**
* Get limited coordinate by supplied coodinates
* Get limited coordinate by supplied coordinates
* @param {number[]} coord - coordinate need to limit
* @param {number[]} [min] - minimum limitaion of coordinate
* @param {number[]} [min] - minimum limitation of coordinate
* @param {number[]} [max] - maximum limitation of coordinate
* @returns {number[]} limited coordiate
*/
Expand Down Expand Up @@ -16209,7 +16213,7 @@ MonthGuide.prototype._removeGuideElements = function(yCoords) {

/**
* Get excluded numbers in range
* @param {number[]} range - the range. value must be sequencial.
* @param {number[]} range - the range. value must be sequential.
* @param {number[]} numbers - numbers to check
* @returns {number[]} excluded numbers
*/
Expand Down Expand Up @@ -22085,12 +22089,11 @@ ScheduleCreationPopup.prototype.render = function(viewModel) {
ScheduleCreationPopup.prototype._makeEditModeData = function(viewModel) {
var schedule = viewModel.schedule;
var title, isPrivate, location, startDate, endDate, isAllDay, state;
var raw = schedule.raw || {};
var calendars = this.calendars;

var id = schedule.id;
title = schedule.title;
isPrivate = raw['class'] === 'private';
isPrivate = schedule.isPrivate;
location = schedule.location;
startDate = schedule.start;
endDate = schedule.end;
Expand All @@ -22114,9 +22117,6 @@ ScheduleCreationPopup.prototype._makeEditModeData = function(viewModel) {
state: state,
start: startDate,
end: endDate,
raw: {
class: isPrivate ? 'private' : 'public'
},
zIndex: this.layer.zIndex + 5,
isEditMode: this._isEditMode
};
Expand All @@ -22127,7 +22127,7 @@ ScheduleCreationPopup.prototype._setDatepickerState = function(newState) {
};

/**
* Set popup position and arrow direction to apear near guide element
* Set popup position and arrow direction to appear near guide element
* @param {MonthCreationGuide|TimeCreationGuide|DayGridCreationGuide} guideBound - creation guide element
*/
ScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(guideBound) {
Expand Down Expand Up @@ -22463,15 +22463,16 @@ ScheduleCreationPopup.prototype._getRangeDate = function(startDate, endDate, isA
ScheduleCreationPopup.prototype._onClickUpdateSchedule = function(form) {
var changes = common.getScheduleChanges(
this._schedule,
['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],
['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state', 'isPrivate'],
{
calendarId: form.calendarId,
title: form.title.value,
location: form.location.value,
start: form.start,
end: form.end,
isAllDay: form.isAllDay,
state: form.state
state: form.state,
isPrivate: form.isPrivate
}
);

Expand All @@ -22481,11 +22482,7 @@ ScheduleCreationPopup.prototype._onClickUpdateSchedule = function(form) {
* @property {Schedule} schedule - schedule object to be updated
*/
this.fire('beforeUpdateSchedule', {
schedule: util.extend({
raw: {
class: form.isPrivate ? 'private' : 'public'
}
}, this._schedule),
schedule: this._schedule,
changes: changes,
start: form.start,
end: form.end,
Expand Down Expand Up @@ -22517,9 +22514,7 @@ ScheduleCreationPopup.prototype._onClickCreateSchedule = function(form) {
calendarId: form.calendarId,
title: form.title.value,
location: form.location.value,
raw: {
class: form.isPrivate ? 'private' : 'public'
},
isPrivate: form.isPrivate,
start: form.start,
end: form.end,
isAllDay: form.isAllDay,
Expand Down Expand Up @@ -22751,7 +22746,7 @@ ScheduleDetailPopup.prototype._getScheduleModel = function(scheduleViewModel) {
};

/**
* Set popup position and arrow direction to apear near guide element
* Set popup position and arrow direction to appear near guide element
* @param {Event} event - creation guide element
*/
ScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(event) {
Expand Down Expand Up @@ -26360,7 +26355,7 @@ var mmax = Math.max,

/**
* @constructor
* @extends {Weekday}
* @extends {View}
* @param {string} name - view name
* @param {object} options - options for DayGridSchedule view
* @param {number} [options.heightPercent] - height percent of view
Expand Down
2 changes: 1 addition & 1 deletion dist/tui-calendar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tui-calendar.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tui-calendar.min.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/tui-calendar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tui-calendar.min.js.map

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for TOAST UI Calendar v1.15.0
// Type definitions for TOAST UI Calendar v1.15.1
// TypeScript Version: 3.2.1

export type DateType = string | Date | TZDate;
Expand Down Expand Up @@ -47,9 +47,6 @@ export interface IDayGridCreationGuide {

export interface IEventWithCreationPopup extends Pick<ISchedule, 'start' | 'end' | 'state' | 'title' | 'location'> {
calendarId: string | number | null;
raw: ISchedule['raw'] & {
class?: 'public' | 'private'
};
useCreationPopup: true;
isAllDay: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tui-calendar",
"author": "NHN FE Development Lab <dl_javascript@nhn.com>",
"version": "1.15.0",
"version": "1.15.1",
"main": "dist/tui-calendar.js",
"types": "index.d.ts",
"license": "MIT",
Expand Down

0 comments on commit de2fb7e

Please sign in to comment.